Return to home view if a search is initiated from elsewhere.

(imported from commit a7453f269cabc2dd349a9711fcb6e84de18fecd7)
This commit is contained in:
Waseem Daher 2013-01-21 18:30:27 -05:00
parent 4b1ea32a66
commit 01ee0ccc9c
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ exports.update_typeahead = function () {
function narrow_or_search_for_term(item) {
var search_query_box = $("#search_query");
var obj = mapped[item];
ui.change_tab_to('#home');
switch (obj.action) {
case 'search':
$("#search_up").focus();