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')
|
@$('.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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue