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();
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("|")