mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
hide search-ui in shares
This commit is contained in:
parent
6c53c75ab2
commit
cca1f9b22b
|
|
@ -1121,6 +1121,7 @@ var ACtx = !IPHONE && (window.AudioContext || window.webkitAudioContext),
|
||||||
dbg_kbd = /[?&]dbgkbd\b/.exec(sloc0),
|
dbg_kbd = /[?&]dbgkbd\b/.exec(sloc0),
|
||||||
abrt_key = "",
|
abrt_key = "",
|
||||||
can_shr = false,
|
can_shr = false,
|
||||||
|
in_shr = false,
|
||||||
rtt = null,
|
rtt = null,
|
||||||
srvinf = "",
|
srvinf = "",
|
||||||
ldks = [],
|
ldks = [],
|
||||||
|
|
@ -7227,7 +7228,7 @@ var treectl = (function () {
|
||||||
fun();
|
fun();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (can_shr && QS('#op_unpost.act') && (cdir.startsWith(SR + have_shr) || get_evpath().startsWith(SR + have_shr)))
|
if (can_shr && in_shr && QS('#op_unpost.act'))
|
||||||
goto('unpost');
|
goto('unpost');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -7252,6 +7253,8 @@ var treectl = (function () {
|
||||||
plain = [],
|
plain = [],
|
||||||
seen = {};
|
seen = {};
|
||||||
|
|
||||||
|
in_shr = have_shr && top.startsWith(SR + have_shr);
|
||||||
|
|
||||||
if (ae && /^tr$/i.exec(ae.nodeName))
|
if (ae && /^tr$/i.exec(ae.nodeName))
|
||||||
if (ae = ae.querySelector('a[id]'))
|
if (ae = ae.querySelector('a[id]'))
|
||||||
cid = ae.getAttribute('id');
|
cid = ae.getAttribute('id');
|
||||||
|
|
@ -7695,6 +7698,9 @@ function apply_perms(res) {
|
||||||
o[a].getAttribute('data-dep') != 'idx' || have_up2k_idx
|
o[a].getAttribute('data-dep') != 'idx' || have_up2k_idx
|
||||||
) ? '' : 'none';
|
) ? '' : 'none';
|
||||||
|
|
||||||
|
if (in_shr)
|
||||||
|
ebi('opa_srch').style.display = 'none';
|
||||||
|
|
||||||
var act = QS('#ops>a.act');
|
var act = QS('#ops>a.act');
|
||||||
if (act && act.style.display === 'none')
|
if (act && act.style.display === 'none')
|
||||||
goto();
|
goto();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue