mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Web UI: Stop using absolute URLs in ajax requests (closes #1011226)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
setUpLimit = function() {
|
||||
var limit = $("uplimitUpdatevalue").get('html').toInt() * 1024;
|
||||
if(hash == "global") {
|
||||
new Request({url: '/command/setGlobalUpLimit',
|
||||
new Request({url: 'command/setGlobalUpLimit',
|
||||
method: 'post',
|
||||
data: {'limit': limit},
|
||||
onComplete: function() {
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
}).send();
|
||||
}else {
|
||||
new Request({url: '/command/setTorrentUpLimit',
|
||||
new Request({url: 'command/setTorrentUpLimit',
|
||||
method: 'post',
|
||||
data: {'hash': hash, 'limit': limit},
|
||||
onComplete: function() {
|
||||
@@ -51,4 +51,4 @@
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user