From a4ad5c8d11ec1cd04e00f5be9a3465620d2ec518 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sat, 12 May 2018 06:40:17 +0300 Subject: [PATCH] Fix invalid API calls in WebUI Closes #8899. --- src/webui/www/private/scripts/mocha-init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 3b18b8145..39535adfa 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -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("|")