updated to use drupal once function instead of jquery once

This commit is contained in:
Josh d'Entremont 2023-10-06 14:53:55 -03:00
parent 469bd8005d
commit 4c8c26f4b2
5 changed files with 12 additions and 11 deletions

View file

@ -43,7 +43,7 @@
// Hide facets over the limit.
facetsList.each(function () {
$(this).children('li:gt(' + zero_based_limit + ')').once('applysoftlimit').hide();
$(once('applysoftlimit', $(this).children('li:gt(' + zero_based_limit + ')'))).hide();
});