Fix the issue of unable to refresh Facets block when Ajax is enabled.
This commit is contained in:
parent
3168f18b6c
commit
40b8719d87
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue