X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Factive_filters%2Factive_filters.js;h=89ebef28329d9435c7b86f6a7f39a2c5bc43e302;hb=e445cc0ae92f3927e7d29e9d271fea7f8dee05a6;hp=fe619247edd66033279131b34725d44a826437ad;hpb=3e3c5579b2c4ebec46d03b29594fdd7ac27ff276;p=myslice.git diff --git a/plugins/active_filters/active_filters.js b/plugins/active_filters/active_filters.js index fe619247..89ebef28 100644 --- a/plugins/active_filters/active_filters.js +++ b/plugins/active_filters/active_filters.js @@ -50,12 +50,12 @@ show_clear_button: function() { this.el('clearFilters').show(); - } + }, hide_clear_button: function() { this.el('clearFilters').hide(); - } + }, check_and_hide_clear_button: function() { @@ -64,7 +64,7 @@ if (count == 1) { // Including the template this.el('clearFilters').hide(); } - } + }, clear_filters: function() { @@ -92,7 +92,7 @@ this.show_clear_button(); }, - remove_filter = function(filter) + remove_filter: function(filter) { this.el(this.id_from_filter(filter, false)).remove(); this.check_and_hide_clear_button();