remove unused focus search field code

This commit is contained in:
Mads Rasmussen
2018-11-28 13:17:08 +01:00
parent 4e29a3709d
commit 85d61ee127

View File

@@ -45,8 +45,6 @@ function navigationService($routeParams, $location, $q, $timeout, $injector, eve
appState.setMenuState("showMenuDialog", false);
appState.setGlobalState("stickyNavigation", false);
appState.setGlobalState("showTray", false);
//$("#search-form input").focus();
break;
case 'menu':
appState.setGlobalState("navMode", "menu");
@@ -69,12 +67,6 @@ function navigationService($routeParams, $location, $q, $timeout, $injector, eve
appState.setMenuState("showMenu", false);
appState.setSectionState("showSearchResults", true);
appState.setMenuState("showMenuDialog", false);
//TODO: This would be much better off in the search field controller listening to appState changes
$timeout(function() {
$("#search-field").focus();
});
break;
default:
appState.setGlobalState("navMode", "default");