mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Send all rechecks in one request
This commit is contained in:
parent
cdad0dc7d3
commit
13075e5099
1 changed files with 7 additions and 9 deletions
|
@ -387,15 +387,13 @@ initializeWindows = function() {
|
|||
recheckFN = function() {
|
||||
var hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length) {
|
||||
hashes.each(function(hash, index) {
|
||||
new Request({
|
||||
url: 'api/v2/torrents/recheck',
|
||||
method: 'post',
|
||||
data: {
|
||||
hashes: hash
|
||||
}
|
||||
}).send();
|
||||
});
|
||||
new Request({
|
||||
url: 'api/v2/torrents/recheck',
|
||||
method: 'post',
|
||||
data: {
|
||||
hashes: hashes.join("|"),
|
||||
}
|
||||
}).send();
|
||||
updateMainData();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue