|
|
|
@ -23,18 +23,26 @@
@@ -23,18 +23,26 @@
|
|
|
|
|
var hash = new URI().getData('hash'); |
|
|
|
|
setDlLimit = function() { |
|
|
|
|
var limit = $("dllimitUpdatevalue").value.toInt() * 1024; |
|
|
|
|
if(hash == "global") { |
|
|
|
|
new Request({url: 'command/setGlobalDlLimit', |
|
|
|
|
if (hash == "global") { |
|
|
|
|
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(); |
|
|
|
|
} |
|
|
|
|