Jump to personals tab on prepare_personal

(imported from commit 5f3fbc7a84a0af6742ceb1f1ab8806234870445f)
This commit is contained in:
Keegan McAllister 2012-08-29 14:07:21 -04:00
parent 395001d8db
commit a1d852d124
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<hr />
<div class="tabbable container">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs" id="zephyr-type-tabs">
<li class="active"><a href="#class-message" data-toggle="tab">Class message</a></li>
<li><a href="#personal-message" data-toggle="tab">Personal message</a></li>
</ul>

View File

@ -118,6 +118,7 @@ function narrow_instance(class_name, instance, target_zephyr) {
}
function prepare_personal(username) {
$('#zephyr-type-tabs a[href="#personal-message"]').tab('show');
$("#recipient").val(username);
$("#new_personal_zephyr").focus();
}