mirror of https://github.com/zulip/zulip.git
Return to home view if a search is initiated from elsewhere.
(imported from commit a7453f269cabc2dd349a9711fcb6e84de18fecd7)
This commit is contained in:
parent
4b1ea32a66
commit
01ee0ccc9c
|
@ -63,6 +63,7 @@ exports.update_typeahead = function () {
|
||||||
function narrow_or_search_for_term(item) {
|
function narrow_or_search_for_term(item) {
|
||||||
var search_query_box = $("#search_query");
|
var search_query_box = $("#search_query");
|
||||||
var obj = mapped[item];
|
var obj = mapped[item];
|
||||||
|
ui.change_tab_to('#home');
|
||||||
switch (obj.action) {
|
switch (obj.action) {
|
||||||
case 'search':
|
case 'search':
|
||||||
$("#search_up").focus();
|
$("#search_up").focus();
|
||||||
|
|
Loading…
Reference in New Issue