1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Fix invalid API calls in WebUI

Closes #8899.
This commit is contained in:
Vladimir Golovnev (Glassez) 2018-05-12 06:40:17 +03:00
parent 29ec830e5c
commit afcf232bd8
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -205,7 +205,7 @@ initializeWindows = function() {
var hashes = torrentsTable.selectedRowsIds(); var hashes = torrentsTable.selectedRowsIds();
if (hashes.length) { if (hashes.length) {
new Request({ new Request({
url: 'api/v2/toggleSequentialDownload', url: 'api/v2/torrents/toggleSequentialDownload',
method: 'post', method: 'post',
data: { data: {
hashes: hashes.join("|") hashes: hashes.join("|")
@ -219,7 +219,7 @@ initializeWindows = function() {
var hashes = torrentsTable.selectedRowsIds(); var hashes = torrentsTable.selectedRowsIds();
if (hashes.length) { if (hashes.length) {
new Request({ new Request({
url: 'api/v2/toggleFirstLastPiecePrio', url: 'api/v2/torrents/toggleFirstLastPiecePrio',
method: 'post', method: 'post',
data: { data: {
hashes: hashes.join("|") hashes: hashes.join("|")