Fix the issue of unable to refresh Facets block when Ajax is enabled.

This commit is contained in:
Kyle Huynh 2021-09-17 09:21:16 -04:00
parent 3168f18b6c
commit 40b8719d87

View file

@ -42,7 +42,7 @@
// Replace filter, pager, summary, and facet blocks. // Replace filter, pager, summary, and facet blocks.
var blocks = {}; var blocks = {};
$( $(
".block[class*='block-plugin-id--islandora-advanced-search-result-pager'], .block[class*='block-plugin-id--views-exposed-filter-block'], .block[class*='block-plugin-id--facet']" ".block[class*='block-plugin-id--islandora-advanced-search-result-pager'], .block[class*='block-plugin-id--views-exposed-filter-block'], .block[class*='block-facets']"
).each(function () { ).each(function () {
var id = $(this).attr("id"); var id = $(this).attr("id");
var block_id = id var block_id = id
@ -119,7 +119,7 @@
// Attach behavior to pager, summary, facet links. // Attach behavior to pager, summary, facet links.
$("[data-drupal-pager-id], [data-drupal-facets-summary-id], [data-drupal-facet-id]") $("[data-drupal-pager-id], [data-drupal-facets-summary-id], [data-drupal-facet-id]")
.once() .once()
.find("a:not(.facets-soft-limit-link)") .find("a:not(.facet-item)")
.click(function (e) { .click(function (e) {
// Let ctrl/cmd click open in a new window. // Let ctrl/cmd click open in a new window.
if (e.shiftKey || e.ctrlKey || e.metaKey) { if (e.shiftKey || e.ctrlKey || e.metaKey) {