mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Web UI: Stop using absolute URLs in ajax requests (closes #1011226)
This commit is contained in:
@@ -22,7 +22,7 @@ MochaUI.extend({
|
||||
// Get global upload limit
|
||||
var maximum = 500;
|
||||
var req = new Request({
|
||||
url: '/command/getGlobalUpLimit',
|
||||
url: 'command/getGlobalUpLimit',
|
||||
method: 'post',
|
||||
data: {},
|
||||
onSuccess: function(data) {
|
||||
@@ -64,7 +64,7 @@ MochaUI.extend({
|
||||
}
|
||||
} else {
|
||||
var req = new Request({
|
||||
url: '/command/getTorrentUpLimit',
|
||||
url: 'command/getTorrentUpLimit',
|
||||
method: 'post',
|
||||
data: {hash: hash},
|
||||
onSuccess: function(data) {
|
||||
@@ -109,7 +109,7 @@ MochaUI.extend({
|
||||
// Get global upload limit
|
||||
var maximum = 500;
|
||||
var req = new Request({
|
||||
url: '/command/getGlobalDlLimit',
|
||||
url: 'command/getGlobalDlLimit',
|
||||
method: 'post',
|
||||
data: {},
|
||||
onSuccess: function(data) {
|
||||
@@ -151,7 +151,7 @@ MochaUI.extend({
|
||||
}
|
||||
} else {
|
||||
var req = new Request({
|
||||
url: '/command/getTorrentDlLimit',
|
||||
url: 'command/getTorrentDlLimit',
|
||||
method: 'post',
|
||||
data: {hash: hash},
|
||||
onSuccess: function(data) {
|
||||
|
||||
Reference in New Issue
Block a user