Add WebUI Force Reannounce option

This commit is contained in:
Thomas Piccirello
2018-07-22 20:33:17 -04:00
committed by sledgehammer999
parent 2bcf09cfa5
commit be683fbcd3
5 changed files with 27 additions and 0 deletions

View File

@@ -400,6 +400,20 @@ initializeWindows = function() {
}
};
reannounceFN = function() {
var hashes = torrentsTable.selectedRowsIds();
if (hashes.length) {
new Request({
url: 'api/v2/torrents/reannounce',
method: 'post',
data: {
hashes: hashes.join("|"),
}
}).send();
updateMainData();
}
};
setLocationFN = function() {
var hashes = torrentsTable.selectedRowsIds();
if (hashes.length) {