Browse Source

[search] Removed loading from filter widget and added empty message

Enrico Berti 11 years ago
parent
commit
82a0110
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/search/src/search/templates/search2.mako

+ 1 - 0
apps/search/src/search/templates/search2.mako

@@ -537,6 +537,7 @@ ${ commonheader(_('Search'), "search", user, "80px") | n,unicode }
 </script>
 
 <script type="text/html" id="filter-widget">
+  <div data-bind="visible: $root.query.fqs().length == 0">${_('There are no filters applied.')}</div>
   <div data-bind="foreach: { data: $root.query.fqs, afterRender: function(){ isLoading(false); } }">
     <span data-bind="text: ko.mapping.toJSON($data), click: function(){ viewModel.query.removeFilter($data); viewModel.search() }"></span>
   </div>