From 36ccb77d1343f2b53162ba0e3cd468cc605f6796 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 26 Apr 2016 16:46:07 -0400 Subject: [PATCH] Lightbox ignores links used as jump points (#downthepage). --- themes/bootstrap3/js/lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 9c5a8819ca5..2c57669a763 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -203,7 +203,7 @@ VuFind.register('lightbox', function() { * data-lightbox-title = Lightbox title (overrides any title the page provides) */ var _constrainLink = function(event) { - if (typeof $(this).data('lightboxIgnore') != 'undefined') { + if (typeof $(this).data('lightboxIgnore') != 'undefined' || this.attributes.href.value.charAt(0) === '#') { return true; } if (this.href.length > 1) { -- GitLab