Fixed issue #2419 - Zammad Icon (Bird) on page top left disappears and does not come back.
This commit is contained in:
parent
caa5c96260
commit
1e08fd7350
1 changed files with 9 additions and 1 deletions
|
@ -16,6 +16,7 @@ class App.Navigation extends App.ControllerWidgetPermanent
|
||||||
'submit form.search-holder': 'preventDefault'
|
'submit form.search-holder': 'preventDefault'
|
||||||
'dblclick form.search-holder .icon-magnifier': 'openExtendedSearch'
|
'dblclick form.search-holder .icon-magnifier': 'openExtendedSearch'
|
||||||
'focus #global-search': 'searchFocus'
|
'focus #global-search': 'searchFocus'
|
||||||
|
'blur #global-search': 'searchBlur'
|
||||||
'keyup #global-search': 'listNavigate'
|
'keyup #global-search': 'listNavigate'
|
||||||
'click .js-global-search-result': 'emptyAndCloseDelayed'
|
'click .js-global-search-result': 'emptyAndCloseDelayed'
|
||||||
'click .js-details-link': 'openExtendedSearch'
|
'click .js-details-link': 'openExtendedSearch'
|
||||||
|
@ -207,6 +208,14 @@ class App.Navigation extends App.ControllerWidgetPermanent
|
||||||
@searchContainer.addClass('focused')
|
@searchContainer.addClass('focused')
|
||||||
@selectAll(e)
|
@selectAll(e)
|
||||||
|
|
||||||
|
searchBlur: (e) =>
|
||||||
|
|
||||||
|
# delay to be able to "click/execute" x if query is ''
|
||||||
|
update = =>
|
||||||
|
if @searchInput.val().trim() is ''
|
||||||
|
@emptyAndClose()
|
||||||
|
@delay(update, 100, 'removeFocused')
|
||||||
|
|
||||||
listNavigate: (e) =>
|
listNavigate: (e) =>
|
||||||
if e.keyCode is 27 # close on esc
|
if e.keyCode is 27 # close on esc
|
||||||
@emptyAndClose()
|
@emptyAndClose()
|
||||||
|
@ -285,7 +294,6 @@ class App.Navigation extends App.ControllerWidgetPermanent
|
||||||
@searchContainer.removeClass('focused filled open no-match loading')
|
@searchContainer.removeClass('focused filled open no-match loading')
|
||||||
@globalSearch.close()
|
@globalSearch.close()
|
||||||
@delayedRemoveAnyPopover()
|
@delayedRemoveAnyPopover()
|
||||||
@searchInput.blur()
|
|
||||||
|
|
||||||
search: =>
|
search: =>
|
||||||
query = @searchInput.val().trim()
|
query = @searchInput.val().trim()
|
||||||
|
|
Loading…
Reference in a new issue