From 47d0ea2060e975ef5091f053fa7b3205655fbb3c Mon Sep 17 00:00:00 2001 From: Claas Kazzer <kazzer@ub.uni-leipzig.de> Date: Fri, 23 Mar 2018 14:56:09 +0100 Subject: [PATCH] * fixes aria-hidden issue in lighbox.js on show/hide (#1142) --- themes/bootstrap3/js/lightbox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index 7156a2152e2..01eade748b9 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); } -- GitLab