Made x to empty search box clickable on focus out.
This commit is contained in:
parent
9f841d2d47
commit
b46715d0bb
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ class App.Navigation extends App.Controller
|
||||||
|
|
||||||
# observer search box
|
# observer search box
|
||||||
@$('#global-search').bind( 'focusout', (e) =>
|
@$('#global-search').bind( 'focusout', (e) =>
|
||||||
@$('.search').removeClass('focused')
|
# delay to be able to click x
|
||||||
|
update = =>
|
||||||
|
@$('.search').removeClass('focused')
|
||||||
|
@delay( update, 180, 'removeFocused' )
|
||||||
)
|
)
|
||||||
|
|
||||||
@$('#global-search').bind( 'focusin', (e) =>
|
@$('#global-search').bind( 'focusin', (e) =>
|
||||||
|
|
Loading…
Reference in a new issue