thomasateilerspunkthamburg
I updated this file for you: /components/com_jamegafilter/assets/js/megafilter.js
It locates in the LNFilterItem class in your JavaScript file (around line 1238). The updateRender method
self.updateRender = function () {
// update textnode to replce counter
if(self.$item != null) {
self.$item.find(":not(iframe)").addBack().contents().filter(function () {
return this.nodeType == 3;
}).each(function () {
var $this = $(this);
$this.replaceWith($this.text().replace(/\(.*\)$/, '(' + self.mcount + ')'));
});
// add empty class into empty group
if (!self.mcount) {
self.$item.addClass('empty');
self.$item.hide(); // Hide item if mcount is 0
} else {
self.$item.removeClass('empty');
self.$item.show(); // Show item if mcount is not 0
}
// call super
self.super.updateRender();
}
}