WebUI: Implement 'Force Start' feature.

This commit is contained in:
Gabriele 2015-04-15 19:13:18 +02:00
parent 2c5edf8652
commit b5b40abb56
7 changed files with 43 additions and 0 deletions

View file

@ -181,6 +181,21 @@ initializeWindows = function() {
}
};
setForceStartFN = function(val) {
var h = myTable.selectedIds();
if (h.length) {
new Request({
url: 'command/setForceStart',
method: 'post',
data: {
value: val,
hashes: h.join("|")
}
}).send();
updateMainData();
}
};
globalDownloadLimitFN = function() {
new MochaUI.Window({
id: 'downloadLimitPage',