Made x to empty search box clickable on focus out.

This commit is contained in:
Martin Edenhofer 2015-06-08 13:14:41 +02:00
parent 9f841d2d47
commit b46715d0bb

View file

@ -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) =>
# delay to be able to click x
update = =>
@$('.search').removeClass('focused') @$('.search').removeClass('focused')
@delay( update, 180, 'removeFocused' )
) )
@$('#global-search').bind( 'focusin', (e) => @$('#global-search').bind( 'focusin', (e) =>