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

do not auto-enable saved filters

Ian Babrou пре 12 година
родитељ
комит
7c74cb8307
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/app/services/filterSrv.js

+ 6 - 2
src/app/services/filterSrv.js

@@ -54,8 +54,12 @@ define([
     // If an id is passed, the filter at that id is updated
     this.set = function(filter,id,noRefresh) {
       var _r;
-      _.defaults(filter,{mandate:'must'});
-      filter.active = true;
+
+      _.defaults(filter,{
+        mandate:'must',
+        active: true
+      });
+
       if(!_.isUndefined(id)) {
         if(!_.isUndefined(self.list[id])) {
           _.extend(self.list[id],filter);