Remove old popovers if search result is empty.
This commit is contained in:
parent
a5684b1686
commit
444d820112
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ class App.Navigation extends App.Controller
|
||||||
if _.isEmpty( result )
|
if _.isEmpty( result )
|
||||||
@el.find('#global-search').parents('li').removeClass('open')
|
@el.find('#global-search').parents('li').removeClass('open')
|
||||||
el.html( '' )
|
el.html( '' )
|
||||||
|
|
||||||
|
# remove old popovers
|
||||||
|
$('.popover').remove()
|
||||||
return
|
return
|
||||||
|
|
||||||
# show result list
|
# show result list
|
||||||
|
|
Loading…
Reference in a new issue