Browse Source

Follow project coding style. Issue #2192.

adaptive-webui-19844
Gabriele 10 years ago
parent
commit
9bd24a1408
  1. 18
      src/webui/www/public/downloadlimit.html
  2. 18
      src/webui/www/public/uploadlimit.html

18
src/webui/www/public/downloadlimit.html

@ -24,17 +24,25 @@ @@ -24,17 +24,25 @@
setDlLimit = function() {
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
if (hash == "global") {
new Request({url: 'command/setGlobalDlLimit',
new Request({
url: 'command/setGlobalDlLimit',
method: 'post',
data: {'limit': limit},
data: {
'limit': limit
},
onComplete: function() {
window.parent.closeWindows();
}
}).send();
} else {
new Request({url: 'command/setTorrentDlLimit',
}
else {
new Request({
url: 'command/setTorrentDlLimit',
method: 'post',
data: {'hash': hash, 'limit': limit},
data: {
'hash': hash,
'limit': limit
},
onComplete: function() {
window.parent.closeWindows();
}

18
src/webui/www/public/uploadlimit.html

@ -24,17 +24,25 @@ @@ -24,17 +24,25 @@
setUpLimit = function() {
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
if (hash == "global") {
new Request({url: 'command/setGlobalUpLimit',
new Request({
url: 'command/setGlobalUpLimit',
method: 'post',
data: {'limit': limit},
data: {
'limit': limit
},
onComplete: function() {
window.parent.closeWindows();
}
}).send();
}else {
new Request({url: 'command/setTorrentUpLimit',
}
else {
new Request({
url: 'command/setTorrentUpLimit',
method: 'post',
data: {'hash': hash, 'limit': limit},
data: {
'hash': hash,
'limit': limit
},
onComplete: function() {
window.parent.closeWindows();
}

Loading…
Cancel
Save