v1.5.1
This commit is contained in:
parent
cd9cafe3a1
commit
dbe2aec79c
@ -1,6 +1,6 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (1, 5, 0)
|
VERSION = (1, 5, 1)
|
||||||
CODENAME = "babel"
|
CODENAME = "babel"
|
||||||
BUILD_DT = (2022, 12, 3)
|
BUILD_DT = (2022, 12, 3)
|
||||||
|
|
||||||
|
@ -6748,14 +6748,16 @@ var unpost = (function () {
|
|||||||
n2 = parseInt(tgt.getAttribute('n2') || n + 1),
|
n2 = parseInt(tgt.getAttribute('n2') || n + 1),
|
||||||
req = [];
|
req = [];
|
||||||
|
|
||||||
for (var a = n; a < n2; a++)
|
for (var a = n; a < n2; a++) {
|
||||||
if (QS('#op_unpost a.n' + a))
|
var links = QSA('#op_unpost a.n' + a);
|
||||||
req.push(uricom_dec(r.files[a].vp.split('?')[0]));
|
if (!links.length)
|
||||||
|
continue;
|
||||||
|
|
||||||
var links = QSA('#op_unpost a.n' + n);
|
req.push(uricom_dec(r.files[a].vp.split('?')[0]));
|
||||||
for (var a = 0, aa = links.length; a < aa; a++) {
|
for (var b = 0; b < links.length; b++) {
|
||||||
links[a].removeAttribute('href');
|
links[b].removeAttribute('href');
|
||||||
links[a].innerHTML = '[busy]';
|
links[b].innerHTML = '[busy]';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toast.show('inf r', 0, L.un_busy.format(req.length));
|
toast.show('inf r', 0, L.un_busy.format(req.length));
|
||||||
@ -6763,7 +6765,7 @@ var unpost = (function () {
|
|||||||
var xhr = new XHR();
|
var xhr = new XHR();
|
||||||
xhr.n = n;
|
xhr.n = n;
|
||||||
xhr.n2 = n2;
|
xhr.n2 = n2;
|
||||||
xhr.open('POST', '/?delete&lim=' + links.length, true);
|
xhr.open('POST', '/?delete&lim=' + req.length, true);
|
||||||
xhr.onload = xhr.onerror = unpost_delete_cb;
|
xhr.onload = xhr.onerror = unpost_delete_cb;
|
||||||
xhr.send(JSON.stringify(req));
|
xhr.send(JSON.stringify(req));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user