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.documentElement.style.overflowY = 'auto';
|
||||||
document.body.style.overflowY = 'auto';
|
document.body.style.overflowY = 'auto';
|
||||||
}
|
}
|
||||||
if (overlay.style.display === 'none')
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (options.duringHide)
|
if (options.duringHide)
|
||||||
options.duringHide();
|
options.duringHide();
|
||||||
|
|
||||||
|
if (overlay.style.display === 'none')
|
||||||
|
return;
|
||||||
|
|
||||||
sethash('');
|
sethash('');
|
||||||
unbindEvents();
|
unbindEvents();
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -4873,10 +4873,10 @@ var thegrid = (function () {
|
||||||
baguetteBox.destroy();
|
baguetteBox.destroy();
|
||||||
|
|
||||||
var br = baguetteBox.run(isrc, {
|
var br = baguetteBox.run(isrc, {
|
||||||
|
noScrollbars: true,
|
||||||
duringHide: r.onhide,
|
duringHide: r.onhide,
|
||||||
afterShow: function () {
|
afterShow: function () {
|
||||||
r.bbox_opts.refocus = true;
|
r.bbox_opts.refocus = true;
|
||||||
document.body.style.overflow = 'hidden';
|
|
||||||
},
|
},
|
||||||
captions: function (g) {
|
captions: function (g) {
|
||||||
var idx = -1,
|
var idx = -1,
|
||||||
|
@ -4899,7 +4899,6 @@ var thegrid = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.onhide = function () {
|
r.onhide = function () {
|
||||||
document.body.style.overflow = '';
|
|
||||||
if (!thegrid.ihop)
|
if (!thegrid.ihop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue