Remove old popovers if search result is empty.

This commit is contained in:
Martin Edenhofer 2014-04-24 13:39:58 +02:00
parent a5684b1686
commit 444d820112

View file

@ -49,6 +49,9 @@ class App.Navigation extends App.Controller
if _.isEmpty( result )
@el.find('#global-search').parents('li').removeClass('open')
el.html( '' )
# remove old popovers
$('.popover').remove()
return
# show result list