     @query = query
 
     if @query == ''
-      @searchContainer.removeClass('open')
-      return
-
+      @searchContainer.removeClass('open loading')
+      return
+
+    @searchContainer.addClass('open')
     @globalSearch.search(query: @query)
 
   filterNavbar: (values, user, parent = null) ->

      @scrollToIfNeeded(prev, false)

  emptyAndClose: =>
    @query = ''
    @searchInput.val('')
    @searchContainer.removeClass('focused filled open no-match loading')
    @globalSearch.close()
    @delayedRemoveAnyPopover()

  andClose: =>
    @query = ''
    @searchInput.blur()
    @searchContainer.removeClass('open no-match loading')
    @globalSearch.close()
    @delayedRemoveAnyPopover()

  search: =>
    query = @searchInput.val().trim()

    if e
      e.preventDefault()
    query = @searchInput.val()
    @emptyAndClose()
    if query
      @navigate("#search/#{encodeURIComponent(query)}")
      return
