|
|
|
@ -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(); |
|
|
|
|
} |
|
|
|
|