From 643d41f7cfec25d7a27d1280328d82b5b21a14d2 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sat, 9 May 2026 13:34:12 +0200 Subject: [PATCH] explicit bbox loaded marker function --- copyparty/web/baguettebox.js | 1 + copyparty/web/browser.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index 1937d9c1..ebd951a9 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -1378,6 +1378,7 @@ window.baguetteBox = (function () { function init(){ if(thegrid != undefined){ thegrid.bagit(); + thegrid.bag_loaded(); } else{ console.log('wait for grid init'); diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 1459cff4..0c57601e 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6562,8 +6562,11 @@ window.thegrid = (function () { } }); r.bbox_opts = br[1]; - r.bbox = true; }; + + r.bag_loaded = function () { + r.bbox = true; + } r.onhide = function () { afilt.apply();