Commit 99894e25 authored by borisson_'s avatar borisson_ Committed by borisson_

Issue #2883298 by borisson_: Soft limit does not consider hierarchical facets

parent 99d3f0ff
......@@ -32,7 +32,7 @@
var facetsList = $('ul[data-drupal-facet-id="' + facet + '"]');
// Hide facets over the limit.
facetsList.find('li:gt(' + zero_based_limit + ')').once().hide();
facetsList.children('li:gt(' + zero_based_limit + ')').once().hide();
// Add "Show more" / "Show less" links.
facetsList.once().filter(function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment