mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Send all rechecks in one request
This commit is contained in:
parent
cdad0dc7d3
commit
13075e5099
@ -387,15 +387,13 @@ initializeWindows = function() {
|
|||||||
recheckFN = function() {
|
recheckFN = function() {
|
||||||
var hashes = torrentsTable.selectedRowsIds();
|
var hashes = torrentsTable.selectedRowsIds();
|
||||||
if (hashes.length) {
|
if (hashes.length) {
|
||||||
hashes.each(function(hash, index) {
|
new Request({
|
||||||
new Request({
|
url: 'api/v2/torrents/recheck',
|
||||||
url: 'api/v2/torrents/recheck',
|
method: 'post',
|
||||||
method: 'post',
|
data: {
|
||||||
data: {
|
hashes: hashes.join("|"),
|
||||||
hashes: hash
|
}
|
||||||
}
|
}).send();
|
||||||
}).send();
|
|
||||||
});
|
|
||||||
updateMainData();
|
updateMainData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user