Skip to content

Commit

Permalink
Followup to bugfix for location facet, really ensure it is only the t…
Browse files Browse the repository at this point in the history
…op level node that expands.
  • Loading branch information
seanaery committed Mar 7, 2024
1 parent c8fdd0a commit 547d16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/trln_argon/location_facet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Blacklight.onLoad(function() {
topLocationFacetItems.find('.facet-select:contains("' + argonLAW + '")').closest('li').addClass("d-none");

// open top-level local institution and expand
topLocationFacetItems.find('.facet-select:contains("' + argonInstitution + '")').closest('li').addClass("twiddle-open");
topLocationFacetItems.find('.facet-select:contains("' + argonInstitution + '")').closest('li').children("ul.collapse").addClass("show");
topLocationFacetItems.find('.facet-select:contains("' + argonInstitution + '")').first().closest('li').addClass("twiddle-open");
topLocationFacetItems.find('.facet-select:contains("' + argonInstitution + '")').first().closest('li').children("ul.collapse").addClass("show");

// if there are more than 10 results
if ( facetLocationWrapper.find('ul.facet-hierarchy > .twiddle-open > ul > li').length > parseInt(locationFacetLimit) ) {
Expand Down

0 comments on commit 547d16b

Please sign in to comment.