X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Factive_filters%2Factive_filters.js;h=fe619247edd66033279131b34725d44a826437ad;hb=3e3c5579b2c4ebec46d03b29594fdd7ac27ff276;hp=2adfd0e76e45b647b14d0769dbe32e514b9f0687;hpb=f7419e1b9bedd90e390fa27bf7d7868db617caee;p=myslice.git diff --git a/plugins/active_filters/active_filters.js b/plugins/active_filters/active_filters.js index 2adfd0e7..fe619247 100644 --- a/plugins/active_filters/active_filters.js +++ b/plugins/active_filters/active_filters.js @@ -4,6 +4,8 @@ * License: GPLv3 */ +// NOTE: We are not making use of element, but this.el() instead... + (function($){ var ActiveFilters = Plugin.extend({ @@ -60,7 +62,7 @@ // Count the number of filter _inside_ the current plugin var count = this.els('filterButton').length; if (count == 1) { // Including the template - jQuery("#clearFilters").hide(); + this.el('clearFilters').hide(); } }