Browse Source

Fix invalid API calls in WebUI

Closes #8899.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 7 years ago
parent
commit
afcf232bd8
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 4
      src/webui/www/private/scripts/mocha-init.js

4
src/webui/www/private/scripts/mocha-init.js

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

Loading…
Cancel
Save