Add WebUI Force Reannounce option

This commit is contained in:
Thomas Piccirello 2018-07-22 20:33:17 -04:00
parent 17405dfc10
commit cdad0dc7d3
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) {