Skip to content
Snippets Groups Projects
Commit 97ff24db authored by Demian Katz's avatar Demian Katz
Browse files

Fix regression: hash links not working in lightbox.

parent 1278da97
No related merge requests found
......@@ -219,7 +219,8 @@ VuFind.register('lightbox', function Lightbox() {
*/
_constrainLink = function constrainLink(event) {
if (typeof $(this).data('lightboxIgnore') != 'undefined'
|| typeof this.attributes.href === 'undefined' || this.href.charAt(0) === '#'
|| typeof this.attributes.href === 'undefined'
|| this.attributes.href.value.charAt(0) === '#'
|| this.href.match(/^[a-zA-Z]+\:[^\/]/) // ignore resource identifiers (mailto:, tel:, etc.)
) {
return true;
......
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