Browse Source

Send all rechecks in one request

adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
13075e5099
  1. 16
      src/webui/www/private/scripts/mocha-init.js

16
src/webui/www/private/scripts/mocha-init.js

@ -387,15 +387,13 @@ initializeWindows = function() { @@ -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…
Cancel
Save