mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 23:32:32 -06:00
simplify autogrid checks
This commit is contained in:
parent
51314098b4
commit
89394bf428
|
|
@ -7683,7 +7683,7 @@ var treectl = (function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sread('gridauto') == 1)
|
if (jread('gridauto', false) && !jread('griden', false))
|
||||||
autogrid(res);
|
autogrid(res);
|
||||||
|
|
||||||
if (url) setTimeout(asdf, 1); else asdf();
|
if (url) setTimeout(asdf, 1); else asdf();
|
||||||
|
|
@ -7864,11 +7864,7 @@ var treectl = (function () {
|
||||||
var iratio = fcount > 0 ? (icount / fcount) * 100 : 0;
|
var iratio = fcount > 0 ? (icount / fcount) * 100 : 0;
|
||||||
var threshold = jread('ga_thresh', 70);
|
var threshold = jread('ga_thresh', 70);
|
||||||
|
|
||||||
if (jread('griden', 0) == 1)
|
if (iratio >= threshold)
|
||||||
thegrid.en = true;
|
|
||||||
else if (thegrid.en && !thegrid.gaen)
|
|
||||||
thegrid.en = false;
|
|
||||||
else if (iratio >= threshold)
|
|
||||||
thegrid.en = true;
|
thegrid.en = true;
|
||||||
else
|
else
|
||||||
thegrid.en = false;
|
thegrid.en = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue