UX: revert full page search focus on magnifying glass click

This commit is contained in:
Sam 2016-02-19 18:28:17 +11:00
parent c756ddbc2e
commit 665a87a32f
1 changed files with 1 additions and 7 deletions

View File

@ -21,13 +21,7 @@ const HeaderController = Ember.Controller.extend({
actions: {
toggleSearch() {
// there may be a cleaner way, but this is so trivial code wise
const $fullpageSearch = $('input.full-page-search');
if ($fullpageSearch.length === 1) {
$fullpageSearch.focus().select();
} else {
this.toggleProperty('searchVisible');
}
this.toggleProperty('searchVisible');
},
showUserMenu() {
if (!this.get('userMenuVisible')) {