diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 7156a2152e29e3c3ff3428247e88c7a13e18a847..01eade748b90dc56286d101fcfc54591786d53d2 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -350,6 +350,7 @@ VuFind.register('lightbox', function Lightbox() { if (VuFind.lightbox.refreshOnClose) { VuFind.refreshPage(); } + this.setAttribute('aria-hidden', true); _emit('VuFind.lightbox.closing'); }); _modal.on('hidden.bs.modal', function lightboxHidden() { @@ -359,7 +360,7 @@ VuFind.register('lightbox', function Lightbox() { VuFind.modal = function modalShortcut(cmd) { if (cmd === 'show') { - _modal.modal($.extend({ show: true }, _modalParams)); + _modal.modal($.extend({ show: true }, _modalParams)).attr('aria-hidden', false); } else { _modal.modal(cmd); }