diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index fa49955c..c9dab901 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3086,6 +3086,7 @@ class HttpCli(object): "srvinf": srv_infot, "acct": self.uname, "idx": ("e2d" in vn.flags), + "itag": ("e2t" in vn.flags), "lifetime": vn.flags.get("lifetime") or 0, "perms": perms, "logues": logues, diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index ad6a70e1..2b65bbb3 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1350,6 +1350,10 @@ input.eq_gain { padding-right: .2em; text-align: right; } +#srch_form:not(.tags) #tsrch_tags, +#srch_form:not(.tags) #tsrch_adv { + display: none; +} #op_search input { margin: 0; } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 104c43ae..ba5c0aa8 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4529,20 +4529,16 @@ document.onkeydown = function (e) { [ L.s_fn, ["name", "name", L.s_f1, "30"] - ] - ]; - var oldcfg = []; - - if (QS('#srch_form.tags')) { - sconf.push([ + ], + [ L.s_ta, ["tags", "tags", L.s_t1, "30"] - ]); - sconf.push([ + ], + [ L.s_ad, ["adv", "adv", L.s_a1, "30"] - ]); - } + ] + ]; var trs = [], orig_url = null, @@ -4550,7 +4546,7 @@ document.onkeydown = function (e) { cap = 125; for (var a = 0; a < sconf.length; a++) { - var html = ['