do not auto-enable saved filters

This commit is contained in:
Ian Babrou 2013-11-06 15:37:14 +04:00
parent f7442f6016
commit 7c74cb8307

View File

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