Remove not needed popovers.

This commit is contained in:
Martin Edenhofer 2015-01-11 00:50:59 +01:00
parent 64bd2ec59d
commit 2dc51de404

View file

@ -186,6 +186,9 @@ class App.Navigation extends App.Controller
@$('.search').addClass('focused') @$('.search').addClass('focused')
# remove not needed popovers
$('.popover').remove()
# check if search is needed # check if search is needed
term = @$('#global-search').val().trim() term = @$('#global-search').val().trim()
return if !term return if !term
@ -198,6 +201,10 @@ class App.Navigation extends App.Controller
@delay( @delay(
=> =>
@$('.search').removeClass('focused') @$('.search').removeClass('focused')
# remove not needed popovers
$('.popover').remove()
@renderResult() @renderResult()
320 320
) )