Преглед изворни кода

Reload filters when loading page

This commit refreshes the dynamic filters when loading page.
Julien Pivotto пре 11 година
родитељ
комит
1f417f0606
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/app/panels/filtering/module.js

+ 3 - 0
src/app/panels/filtering/module.js

@@ -28,6 +28,9 @@ function (angular, app, _) {
 
 
     $scope.init = function() {
     $scope.init = function() {
       $scope.filterSrv = filterSrv;
       $scope.filterSrv = filterSrv;
+      _.each(filterSrv.list, function(filter) {
+        $scope.applyFilter(filter);
+      });
     };
     };
 
 
     $scope.remove = function(filter) {
     $scope.remove = function(filter) {