mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Follow project coding style. Issue #2192.
This commit is contained in:
parent
16dcf39823
commit
9bd24a1408
2 changed files with 86 additions and 70 deletions
|
@ -24,17 +24,25 @@
|
||||||
setDlLimit = function() {
|
setDlLimit = function() {
|
||||||
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
|
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
|
||||||
if (hash == "global") {
|
if (hash == "global") {
|
||||||
new Request({url: 'command/setGlobalDlLimit',
|
new Request({
|
||||||
|
url: 'command/setGlobalDlLimit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {'limit': limit},
|
data: {
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
} else {
|
}
|
||||||
new Request({url: 'command/setTorrentDlLimit',
|
else {
|
||||||
|
new Request({
|
||||||
|
url: 'command/setTorrentDlLimit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {'hash': hash, 'limit': limit},
|
data: {
|
||||||
|
'hash': hash,
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,17 +24,25 @@
|
||||||
setUpLimit = function() {
|
setUpLimit = function() {
|
||||||
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
|
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
|
||||||
if (hash == "global") {
|
if (hash == "global") {
|
||||||
new Request({url: 'command/setGlobalUpLimit',
|
new Request({
|
||||||
|
url: 'command/setGlobalUpLimit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {'limit': limit},
|
data: {
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
}else {
|
}
|
||||||
new Request({url: 'command/setTorrentUpLimit',
|
else {
|
||||||
|
new Request({
|
||||||
|
url: 'command/setTorrentUpLimit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {'hash': hash, 'limit': limit},
|
data: {
|
||||||
|
'hash': hash,
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
window.parent.closeWindows();
|
window.parent.closeWindows();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue