This commit is contained in:
ed 2024-04-03 00:28:15 +00:00
parent f471b05aa4
commit 9c42cbec6f
2 changed files with 4 additions and 4 deletions

View file

@ -591,12 +591,13 @@ window.baguetteBox = (function () {
document.documentElement.style.overflowY = 'auto';
document.body.style.overflowY = 'auto';
}
if (overlay.style.display === 'none')
return;
if (options.duringHide)
options.duringHide();
if (overlay.style.display === 'none')
return;
sethash('');
unbindEvents();
try {

View file

@ -4873,10 +4873,10 @@ var thegrid = (function () {
baguetteBox.destroy();
var br = baguetteBox.run(isrc, {
noScrollbars: true,
duringHide: r.onhide,
afterShow: function () {
r.bbox_opts.refocus = true;
document.body.style.overflow = 'hidden';
},
captions: function (g) {
var idx = -1,
@ -4899,7 +4899,6 @@ var thegrid = (function () {
};
r.onhide = function () {
document.body.style.overflow = '';
if (!thegrid.ihop)
return;