mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix wrong ETA after failed handshakes +
tooltip-hint positioning on bottom-most elements
This commit is contained in:
parent
d2ae822e15
commit
0a81aba899
|
@ -2178,7 +2178,6 @@ function up2k_init(subtle) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
st.bytes.finished += t.size;
|
|
||||||
var err_pend = rsp.indexOf('partial upload exists') + 1,
|
var err_pend = rsp.indexOf('partial upload exists') + 1,
|
||||||
err_dupe = rsp.indexOf('file already exists') + 1;
|
err_dupe = rsp.indexOf('file already exists') + 1;
|
||||||
|
|
||||||
|
@ -2197,6 +2196,9 @@ function up2k_init(subtle) {
|
||||||
return toast.err(0, L.u_ehsdf + "\n\n" + rsp.replace(/.*; /, ''));
|
return toast.err(0, L.u_ehsdf + "\n\n" + rsp.replace(/.*; /, ''));
|
||||||
|
|
||||||
if (err != "") {
|
if (err != "") {
|
||||||
|
if (!t.t_uploading)
|
||||||
|
st.bytes.finished += t.size;
|
||||||
|
|
||||||
pvis.seth(t.n, 1, "ERROR");
|
pvis.seth(t.n, 1, "ERROR");
|
||||||
pvis.seth(t.n, 2, err);
|
pvis.seth(t.n, 2, err);
|
||||||
pvis.move(t.n, 'ng');
|
pvis.move(t.n, 'ng');
|
||||||
|
|
|
@ -967,7 +967,7 @@ var tt = (function () {
|
||||||
prev = this;
|
prev = this;
|
||||||
};
|
};
|
||||||
|
|
||||||
var tev;
|
var tev, vh;
|
||||||
r.dshow = function (e) {
|
r.dshow = function (e) {
|
||||||
clearTimeout(tev);
|
clearTimeout(tev);
|
||||||
if (!r.getmsg(this))
|
if (!r.getmsg(this))
|
||||||
|
@ -980,6 +980,7 @@ var tt = (function () {
|
||||||
if (TOUCH)
|
if (TOUCH)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
vh = window.innerHeight;
|
||||||
this.addEventListener('mousemove', r.move);
|
this.addEventListener('mousemove', r.move);
|
||||||
clmod(r.th, 'act', 1);
|
clmod(r.th, 'act', 1);
|
||||||
r.move(e);
|
r.move(e);
|
||||||
|
@ -1058,8 +1059,9 @@ var tt = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.move = function (e) {
|
r.move = function (e) {
|
||||||
|
var sy = e.clientY + 128 > vh ? -1 : 1;
|
||||||
r.th.style.left = (e.pageX + 12) + 'px';
|
r.th.style.left = (e.pageX + 12) + 'px';
|
||||||
r.th.style.top = (e.pageY + 12) + 'px';
|
r.th.style.top = (e.pageY + 12 * sy) + 'px';
|
||||||
};
|
};
|
||||||
|
|
||||||
if (IPHONE) {
|
if (IPHONE) {
|
||||||
|
|
Loading…
Reference in a new issue