|
|
@ -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: hash |
|
|
|
hashes: hashes.join("|"), |
|
|
|
} |
|
|
|
} |
|
|
|
}).send(); |
|
|
|
}).send(); |
|
|
|
}); |
|
|
|
|
|
|
|
updateMainData(); |
|
|
|
updateMainData(); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|