Skip to content

Commit

Permalink
Update filter_bar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqtw committed Nov 21, 2023
1 parent e520085 commit 934c608
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions lms/static/js/discovery/views/filter_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@

addFilter: function(filter) {
var label = new FilterLabel({model: filter});
this.$ul.append(label.render().el);
// this.$ul.append(label.render().el);
this.show();
},

hideIfEmpty: function() {
if (this.collection.isEmpty()) {
this.hide();
}
},
// hideIfEmpty: function() {
// if (this.collection.isEmpty()) {
// this.hide();
// }
// },

resetFilters: function() {
this.$ul.empty();
this.hide();
},
// resetFilters: function() {
// this.$ul.empty();
// this.hide();
// },

clearFilter: function(event) {
var $target = $(event.currentTarget);
var filter = this.collection.get($target.data('type'));
this.trigger('clearFilter', filter.id);
},
// clearFilter: function(event) {
// var $target = $(event.currentTarget);
// var filter = this.collection.get($target.data('type'));
// this.trigger('clearFilter', filter.id);
// },

clearAll: function(event) {
this.trigger('clearAll');
},
// clearAll: function(event) {
// this.trigger('clearAll');
// },

show: function() {
this.$el.removeClass('is-collapsed');
Expand Down

0 comments on commit 934c608

Please sign in to comment.