mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
maybe fix #81
This commit is contained in:
parent
f471b05aa4
commit
9c42cbec6f
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue