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