[#66,filters,view][m]: new FilterEditor view which shows current filters and allowed them to be removed.
This commit is contained in:
@@ -217,6 +217,15 @@ my.Query = Backbone.Model.extend({
|
||||
// change does not seem to be triggered ...
|
||||
this.trigger('change');
|
||||
},
|
||||
// ### removeFilter
|
||||
//
|
||||
// Remove a filter from filters at index filterIndex
|
||||
removeFilter: function(filterIndex) {
|
||||
var filters = this.get('filters');
|
||||
filters.splice(filterIndex, 1);
|
||||
this.set({filters: filters});
|
||||
this.trigger('change');
|
||||
},
|
||||
// ### addFacet
|
||||
//
|
||||
// Add a Facet to this query
|
||||
|
||||
Reference in New Issue
Block a user