From b620b08d0835f21d99473871ed7debe0897ad1ae Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 28 Jun 2016 10:19:46 -0400 Subject: [PATCH] Lightbox facet page adjustment in href. --- themes/bootstrap3/js/facets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/bootstrap3/js/facets.js b/themes/bootstrap3/js/facets.js index b9ea423f155..949b1d75949 100644 --- a/themes/bootstrap3/js/facets.js +++ b/themes/bootstrap3/js/facets.js @@ -142,6 +142,7 @@ VuFind.register('lightbox_facets', function LightboxFacets() { button.before(list); if (list.length && htmlDiv.find('.js-facet-next-page').length) { button.attr('data-page', page + 1); + button.attr('href', button.attr('href').replace(/facetpage=\d+/, 'facetpage='+(page+1))); button.text(VuFind.translate('more') + ' ...'); button.removeAttr('disabled'); } else { -- GitLab