mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
indicate forced-randomized filenames
This commit is contained in:
parent
2b644fa81b
commit
b0db14d8b0
|
@ -3365,6 +3365,7 @@ class HttpCli(object):
|
||||||
"idx": ("e2d" in vn.flags),
|
"idx": ("e2d" in vn.flags),
|
||||||
"itag": ("e2t" in vn.flags),
|
"itag": ("e2t" in vn.flags),
|
||||||
"lifetime": vn.flags.get("lifetime") or 0,
|
"lifetime": vn.flags.get("lifetime") or 0,
|
||||||
|
"frand": bool(vn.flags.get("rand")),
|
||||||
"perms": perms,
|
"perms": perms,
|
||||||
"logues": logues,
|
"logues": logues,
|
||||||
"readme": readme,
|
"readme": readme,
|
||||||
|
@ -3377,6 +3378,7 @@ class HttpCli(object):
|
||||||
"acct": self.uname,
|
"acct": self.uname,
|
||||||
"perms": json.dumps(perms),
|
"perms": json.dumps(perms),
|
||||||
"lifetime": ls_ret["lifetime"],
|
"lifetime": ls_ret["lifetime"],
|
||||||
|
"frand": bool(vn.flags.get("rand")),
|
||||||
"taglist": [],
|
"taglist": [],
|
||||||
"def_hcols": [],
|
"def_hcols": [],
|
||||||
"have_emp": self.args.emp,
|
"have_emp": self.args.emp,
|
||||||
|
|
|
@ -155,6 +155,7 @@
|
||||||
sb_lg = "{{ sb_lg }}",
|
sb_lg = "{{ sb_lg }}",
|
||||||
lifetime = {{ lifetime }},
|
lifetime = {{ lifetime }},
|
||||||
turbolvl = {{ turbolvl }},
|
turbolvl = {{ turbolvl }},
|
||||||
|
frand = {{ frand|tojson }},
|
||||||
u2sort = "{{ u2sort }}",
|
u2sort = "{{ u2sort }}",
|
||||||
have_emp = {{ have_emp|tojson }},
|
have_emp = {{ have_emp|tojson }},
|
||||||
txt_ext = "{{ txt_ext }}",
|
txt_ext = "{{ txt_ext }}",
|
||||||
|
|
|
@ -5537,7 +5537,7 @@ var treectl = (function () {
|
||||||
have_up2k_idx = res.idx;
|
have_up2k_idx = res.idx;
|
||||||
have_tags_idx = res.itag;
|
have_tags_idx = res.itag;
|
||||||
lifetime = res.lifetime;
|
lifetime = res.lifetime;
|
||||||
apply_perms(res.perms);
|
apply_perms(res);
|
||||||
fileman.render();
|
fileman.render();
|
||||||
}
|
}
|
||||||
if (sel.length)
|
if (sel.length)
|
||||||
|
@ -5766,8 +5766,8 @@ var wfp_debounce = (function () {
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
function apply_perms(newperms) {
|
function apply_perms(res) {
|
||||||
perms = newperms || [];
|
perms = res.perms || [];
|
||||||
|
|
||||||
var a = QS('#ops a[data-dest="up2k"]');
|
var a = QS('#ops a[data-dest="up2k"]');
|
||||||
if (have_up2k_idx) {
|
if (have_up2k_idx) {
|
||||||
|
@ -5841,6 +5841,8 @@ function apply_perms(newperms) {
|
||||||
(have_write || tds[a].getAttribute('data-perm') == 'read') ?
|
(have_write || tds[a].getAttribute('data-perm') == 'read') ?
|
||||||
'table-cell' : 'none';
|
'table-cell' : 'none';
|
||||||
}
|
}
|
||||||
|
if (res.frand)
|
||||||
|
ebi('u2rand').parentNode.style.display = 'none';
|
||||||
|
|
||||||
if (up2k)
|
if (up2k)
|
||||||
up2k.set_fsearch();
|
up2k.set_fsearch();
|
||||||
|
|
|
@ -2918,7 +2918,7 @@ ebi('ico1').onclick = function () {
|
||||||
if (QS('#op_up2k.act'))
|
if (QS('#op_up2k.act'))
|
||||||
goto_up2k();
|
goto_up2k();
|
||||||
|
|
||||||
apply_perms(perms);
|
apply_perms({ "perms": perms, "frand": frand });
|
||||||
|
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
|
Loading…
Reference in a new issue