diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 12d13910..0a67e8b7 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (0, 11, 32) +VERSION = (0, 11, 33) CODENAME = "the grid" -BUILD_DT = (2021, 7, 6) +BUILD_DT = (2021, 7, 7) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 84432899..22b17645 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -413,6 +413,10 @@ function U2pvis(act, btns) { } } } + + if (this.head < 0) + this.head = 0; + if (card == "bz") { for (var a = this.head - 1; a >= this.head - this.wsz && a >= 0; a--) { html.unshift(this.genrow(a, true).replace(/>
WARNING: turbo enabled, client may not detect and resume incomplete uploads; see turbo-button tooltip
', - html = ebi('u2foot').innerHTML; + var msgu = 'WARNING: turbo enabled, client may not detect and resume incomplete uploads; see turbo-button tooltip
', + msgs = 'WARNING: turbo enabled, search may give false-positives; see turbo-button tooltip
', + msg = fsearch ? msgs : msgu, + omsg = fsearch ? msgu : msgs, + html = ebi('u2foot').innerHTML, + ohtml = html; if (turbo && html.indexOf(msg) === -1) - html += msg; + html = html.replace(omsg, '') + msg; else if (!turbo) - html = html.replace(msg, ''); + html = html.replace(msgu, '').replace(msgs, ''); - ebi('u2foot').innerHTML = html; + if (html !== ohtml) + ebi('u2foot').innerHTML = html; } draw_turbo(); @@ -1678,6 +1694,7 @@ function up2k_init(subtle) { } catch (ex) { } + draw_turbo(); onresize(); }