UX: revert full page search focus on magnifying glass click
This commit is contained in:
parent
c756ddbc2e
commit
665a87a32f
1 changed files with 1 additions and 7 deletions
|
@ -21,13 +21,7 @@ const HeaderController = Ember.Controller.extend({
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
toggleSearch() {
|
toggleSearch() {
|
||||||
// there may be a cleaner way, but this is so trivial code wise
|
this.toggleProperty('searchVisible');
|
||||||
const $fullpageSearch = $('input.full-page-search');
|
|
||||||
if ($fullpageSearch.length === 1) {
|
|
||||||
$fullpageSearch.focus().select();
|
|
||||||
} else {
|
|
||||||
this.toggleProperty('searchVisible');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
showUserMenu() {
|
showUserMenu() {
|
||||||
if (!this.get('userMenuVisible')) {
|
if (!this.get('userMenuVisible')) {
|
||||||
|
|
Reference in a new issue