mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
add wait loop to up-only folder init
This commit is contained in:
parent
2d2bd1a499
commit
6602a88a75
|
|
@ -9117,8 +9117,9 @@ function apply_perms(res) {
|
|||
ebi('u2rand').parentNode.style.display = 'none';
|
||||
|
||||
u2ts = res.u2ts;
|
||||
if (up2k && up2k.set_fsearch)
|
||||
up2k.set_fsearch();
|
||||
|
||||
if(up2k)
|
||||
wait_set_fsearch();
|
||||
|
||||
if (res.cfg)
|
||||
rw_edit = res.rw_edit;
|
||||
|
|
@ -9141,6 +9142,16 @@ function apply_perms(res) {
|
|||
clmod(ebi('opa_mkd'), 'vis', up_only);
|
||||
}
|
||||
|
||||
function wait_set_fsearch(){
|
||||
var t = setInterval(function () {
|
||||
if (!up2k || !up2k.set_fsearch)
|
||||
return;
|
||||
|
||||
clearInterval(t);
|
||||
up2k.set_fsearch();
|
||||
}, 50);
|
||||
}
|
||||
|
||||
|
||||
function tr2id(tr) {
|
||||
try {
|
||||
|
|
@ -11098,8 +11109,8 @@ function reload_browser() {
|
|||
for (var a = 0; a < ns.length; a++)
|
||||
clmod(ebi(ns[a]), 'hidden', ebi('unsearch'));
|
||||
|
||||
if (up2k && up2k.set_fsearch)
|
||||
up2k.set_fsearch();
|
||||
if(up2k)
|
||||
wait_set_fsearch();
|
||||
|
||||
thegrid.setdirty();
|
||||
msel.render();
|
||||
|
|
|
|||
Loading…
Reference in a new issue