Skip to content
Snippets Groups Projects
Commit 379dc587 authored by Chris Hallberg's avatar Chris Hallberg Committed by Robert Lange
Browse files

Improve Lightbox accessibility.

parent adb0eaf4
Branches
Tags
No related merge requests found
......@@ -7,7 +7,7 @@ VuFind.register('lightbox', function Lightbox() {
var refreshOnClose = false;
var _modalParams = {};
// Elements
var _modal, _modalBody, _clickedButton = null;
var _modal, _modalBody, _modalTitle, _clickedButton = null;
// Utilities
function _storeClickedStatus() {
_clickedButton = this;
......@@ -386,6 +386,7 @@ VuFind.register('lightbox', function Lightbox() {
function init() {
_modal = $('#modal');
_modalBody = _modal.find('.modal-body');
_modalTitle = _modal.find('#modal-title');
_modal.on('hide.bs.modal', function lightboxHide() {
if (VuFind.lightbox.refreshOnClose) {
VuFind.refreshPage();
......
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