Commit 663717f4 authored by Ujvari Gergely's avatar Ujvari Gergely

Reallow empty filter search

parent 4f718b5d
...@@ -153,10 +153,6 @@ class StreamSearch ...@@ -153,10 +153,6 @@ class StreamSearch
query: search_query query: search_query
callbacks: callbacks:
search: (query, searchCollection) => search: (query, searchCollection) =>
# Do not search when no facet is given
unless searchCollection.models.length > 0
return
# Assemble the filter json # Assemble the filter json
filter = filter =
streamfilter streamfilter
...@@ -262,10 +258,9 @@ class StreamSearch ...@@ -262,10 +258,9 @@ class StreamSearch
index +=1 index +=1
$scope.annotations = [] $scope.annotations = []
if search_query.length > 0 $timeout =>
$timeout => @search.searchBox.app.options.callbacks.search @search.searchBox.value(), @search.searchBox.app.searchQuery
@search.searchBox.app.options.callbacks.search @search.searchBox.value(), @search.searchBox.app.searchQuery ,500
,500
angular.module('h.streamsearch',['h.streamfilter','h.filters','h.directives','bootstrap']) angular.module('h.streamsearch',['h.streamfilter','h.filters','h.directives','bootstrap'])
.controller('StreamSearchController', StreamSearch) .controller('StreamSearchController', StreamSearch)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment