Merge remote-tracking branch 'topface/disabled-filters' into filterDefaults
This commit is contained in:
@@ -51,8 +51,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user