Remove not needed popovers.
This commit is contained in:
parent
64bd2ec59d
commit
2dc51de404
1 changed files with 7 additions and 0 deletions
|
@ -186,6 +186,9 @@ class App.Navigation extends App.Controller
|
|||
|
||||
@$('.search').addClass('focused')
|
||||
|
||||
# remove not needed popovers
|
||||
$('.popover').remove()
|
||||
|
||||
# check if search is needed
|
||||
term = @$('#global-search').val().trim()
|
||||
return if !term
|
||||
|
@ -198,6 +201,10 @@ class App.Navigation extends App.Controller
|
|||
@delay(
|
||||
=>
|
||||
@$('.search').removeClass('focused')
|
||||
|
||||
# remove not needed popovers
|
||||
$('.popover').remove()
|
||||
|
||||
@renderResult()
|
||||
320
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue