diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index ebd951a9..d992a1bc 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -1376,9 +1376,8 @@ window.baguetteBox = (function () { function init(){ - if(thegrid != undefined){ + if(thegrid != undefined && !thegrid.dirty){ 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 0c57601e..1459cff4 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6562,11 +6562,8 @@ window.thegrid = (function () { } }); r.bbox_opts = br[1]; - }; - - r.bag_loaded = function () { r.bbox = true; - } + }; r.onhide = function () { afilt.apply();