X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=plugins%2Factive_filters%2Fstatic%2Fjs%2Factive_filters.js;h=81b1459e5020ef2000b36c1d09e92541f6ee86f7;hp=89ebef28329d9435c7b86f6a7f39a2c5bc43e302;hb=22dba9d34674e0cc1b285e678bbb7bc6482c58ca;hpb=dc6253db70ae01826edee0bb2af7750874f996bf diff --git a/plugins/active_filters/static/js/active_filters.js b/plugins/active_filters/static/js/active_filters.js index 89ebef28..81b1459e 100644 --- a/plugins/active_filters/static/js/active_filters.js +++ b/plugins/active_filters/static/js/active_filters.js @@ -13,7 +13,7 @@ init: function(options, element) { this._super(options, element); - this.els('closeButton').click(function() { + this.elts('closeButton').click(function() { manifold.raise_event(options.query_uuid, FILTER_REMOVED, filter); }); @@ -60,7 +60,7 @@ check_and_hide_clear_button: function() { // Count the number of filter _inside_ the current plugin - var count = this.els('filterButton').length; + var count = this.elts('filterButton').length; if (count == 1) { // Including the template this.el('clearFilters').hide(); } @@ -85,7 +85,7 @@ // Add an event on click on the close button, call function removeFilter var self = this; - this.els('closeButton').last().click(function() { + this.elts('closeButton').last().click(function() { manifold.raise_event(self.options.query_uuid, FILTER_REMOVED, filter); });