From 40b8719d87ad6eef4f764a0754555783308fedfb Mon Sep 17 00:00:00 2001 From: Kyle Huynh Date: Fri, 17 Sep 2021 09:21:16 -0400 Subject: [PATCH] Fix the issue of unable to refresh Facets block when Ajax is enabled. --- js/facets/facets-views-ajax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/facets/facets-views-ajax.js b/js/facets/facets-views-ajax.js index 77606bd..71f7c20 100644 --- a/js/facets/facets-views-ajax.js +++ b/js/facets/facets-views-ajax.js @@ -42,7 +42,7 @@ // Replace filter, pager, summary, and facet 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 () { var id = $(this).attr("id"); var block_id = id @@ -119,7 +119,7 @@ // Attach behavior to pager, summary, facet links. $("[data-drupal-pager-id], [data-drupal-facets-summary-id], [data-drupal-facet-id]") .once() - .find("a:not(.facets-soft-limit-link)") + .find("a:not(.facet-item)") .click(function (e) { // Let ctrl/cmd click open in a new window. if (e.shiftKey || e.ctrlKey || e.metaKey) {