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

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