Fix invalid API calls in WebUI

Closes #8899.
This commit is contained in:
Vladimir Golovnev (Glassez) 2018-05-12 06:40:17 +03:00 committed by sledgehammer999
parent 35f2f56757
commit a4ad5c8d11
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

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