Skip to content
Snippets Groups Projects
Commit b620b08d authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Lightbox facet page adjustment in href.

parent dd0d7883
No related merge requests found
...@@ -142,6 +142,7 @@ VuFind.register('lightbox_facets', function LightboxFacets() { ...@@ -142,6 +142,7 @@ VuFind.register('lightbox_facets', function LightboxFacets() {
button.before(list); button.before(list);
if (list.length && htmlDiv.find('.js-facet-next-page').length) { if (list.length && htmlDiv.find('.js-facet-next-page').length) {
button.attr('data-page', page + 1); button.attr('data-page', page + 1);
button.attr('href', button.attr('href').replace(/facetpage=\d+/, 'facetpage='+(page+1)));
button.text(VuFind.translate('more') + ' ...'); button.text(VuFind.translate('more') + ' ...');
button.removeAttr('disabled'); button.removeAttr('disabled');
} else { } else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment