mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
Follow project coding style. Issue #2192.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -23,18 +23,26 @@
|
||||
var hash = new URI().getData('hash');
|
||||
setUpLimit = function() {
|
||||
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
|
||||
if(hash == "global") {
|
||||
new Request({url: 'command/setGlobalUpLimit',
|
||||
if (hash == "global") {
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user