Skip to content

Commit

Permalink
Only count detail span
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomez committed Mar 12, 2024
1 parent 2199207 commit a1ff81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eea/facetednavigation/widgets/criteria/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Faceted.CriteriaWidget.prototype = {
});
});

var count = jQuery("dd span", context.area).length;
context.toggle_button_count.text("(" + count + ")");
var count_detail = jQuery("dd span.title", context.area).length;
context.toggle_button_count.text("(" + count_detail + ")");

if (!empty) {
context.widget.fadeIn("fast");
Expand Down

0 comments on commit a1ff81a

Please sign in to comment.