diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 51393a46e4a0eda8aedd1eb6ecbe0e8bc2ace01f..06fb8ea4193be9c1a12762452f7a21136cd3ff84 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -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.attributes.href.value.charAt(0) === '#' + || typeof this.attributes.href === 'undefined' || this.href.charAt(0) === '#' + || this.href.match(/^[a-zA-Z]+\:[^\/]/) // ignore resource identifiers (mailto:, tel:, etc.) ) { return true; }