Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Dec 3, 2022
1 parent cd9cafe commit dbe2aec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion copyparty/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8

VERSION = (1, 5, 0)
VERSION = (1, 5, 1)
CODENAME = "babel"
BUILD_DT = (2022, 12, 3)

Expand Down
18 changes: 10 additions & 8 deletions copyparty/web/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6748,22 +6748,24 @@ var unpost = (function () {
n2 = parseInt(tgt.getAttribute('n2') || n + 1),
req = [];

for (var a = n; a < n2; a++)
if (QS('#op_unpost a.n' + a))
req.push(uricom_dec(r.files[a].vp.split('?')[0]));
for (var a = n; a < n2; a++) {
var links = QSA('#op_unpost a.n' + a);
if (!links.length)
continue;

var links = QSA('#op_unpost a.n' + n);
for (var a = 0, aa = links.length; a < aa; a++) {
links[a].removeAttribute('href');
links[a].innerHTML = '[busy]';
req.push(uricom_dec(r.files[a].vp.split('?')[0]));
for (var b = 0; b < links.length; b++) {
links[b].removeAttribute('href');
links[b].innerHTML = '[busy]';
}
}

toast.show('inf r', 0, L.un_busy.format(req.length));

var xhr = new XHR();
xhr.n = n;
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.send(JSON.stringify(req));
};
Expand Down

0 comments on commit dbe2aec

Please sign in to comment.