mirror of https://github.com/zulip/zulip.git
Un-narrow whenever we clear the search box
(imported from commit 15533579bfbae1644cc76b33348c3cd21a829713)
This commit is contained in:
parent
4ddaf5a2ae
commit
ddf75b64f7
|
@ -107,10 +107,8 @@ function process_hotkey(e) {
|
|||
ui.hide_userinfo_popover();
|
||||
} else if (compose.composing()) {
|
||||
compose.cancel();
|
||||
} else if (search.keyboard_currently_finding()) {
|
||||
search.clear_search();
|
||||
} else {
|
||||
narrow.deactivate();
|
||||
search.clear_search();
|
||||
}
|
||||
return true;
|
||||
case 99: // 'c': compose
|
||||
|
|
|
@ -337,6 +337,7 @@ exports.initiate_search = function () {
|
|||
};
|
||||
|
||||
exports.clear_search = function () {
|
||||
narrow.deactivate();
|
||||
$('table tr').removeHighlight();
|
||||
// Clear & reset searchbox to its normal size
|
||||
$('#search_query').val('').width('');
|
||||
|
|
Loading…
Reference in New Issue