mirror of https://github.com/zulip/zulip.git
Jump to personals tab on prepare_personal
(imported from commit 5f3fbc7a84a0af6742ceb1f1ab8806234870445f)
This commit is contained in:
parent
395001d8db
commit
a1d852d124
|
@ -36,7 +36,7 @@
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="tabbable container">
|
<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 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>
|
<li><a href="#personal-message" data-toggle="tab">Personal message</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -118,6 +118,7 @@ function narrow_instance(class_name, instance, target_zephyr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare_personal(username) {
|
function prepare_personal(username) {
|
||||||
|
$('#zephyr-type-tabs a[href="#personal-message"]').tab('show');
|
||||||
$("#recipient").val(username);
|
$("#recipient").val(username);
|
||||||
$("#new_personal_zephyr").focus();
|
$("#new_personal_zephyr").focus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue