stable
Juanfran 2015-10-15 12:46:33 +02:00
parent 25f3f99d1b
commit c0048dc845
1 changed files with 2 additions and 2 deletions

View File

@ -64,11 +64,11 @@ class SearchController extends mixOf(taiga.Controller, taiga.PageMixin)
promise.then null, @.onInitialDataError.bind(@)
# Search input watcher
@scope.searchTerm = ""
@scope.searchTerm = null
loadSearchData = debounceLeading(100, (t) => @.loadSearchData(t))
bindOnce @scope, "projectId", (projectId) =>
if !@scope.searchResults
if !@scope.searchResults && @scope.searchTerm
@.loadSearchData()
@scope.$watch "searchTerm", (term) =>