Browse Source

HUE-2646 [search] Update timeline automatically when updating interval

Romain Rigaux 10 years ago
parent
commit
1e05df16a6
1 changed files with 10 additions and 0 deletions
  1. 10 0
      apps/search/src/search/static/search/js/search.ko.js

+ 10 - 0
apps/search/src/search/static/search/js/search.ko.js

@@ -472,6 +472,11 @@ var Collection = function (vm, collection) {
     facet.properties.limit.subscribe(function () {
       vm.search();
     });
+    if (facet.properties.gap) {
+      facet.properties.gap.subscribe(function () {
+        vm.search();
+      });
+    }
   });
   self.template.rows.subscribe(function() {
     vm.search();
@@ -502,6 +507,11 @@ var Collection = function (vm, collection) {
           facet.properties.limit.subscribe(function () {
             vm.search();
           });
+          if (facet.properties.gap) {
+            facet.properties.gap.subscribe(function () {
+              vm.search();
+            });
+          }
           self.facets.push(facet);
           vm.search();
         } else {