From 1f42ab8c4f29e91852605b6717e0ccfb9e5d1ba2 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 14 Mar 2018 00:56:57 -0400 Subject: [PATCH] Remove unused/superfluous variables --- src/webui/www/private/scripts/mocha-init.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 0ea4f16af..5faa6d3c8 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -146,7 +146,6 @@ initializeWindows = function() { uploadLimitFN = function() { var hashes = torrentsTable.selectedRowsIds(); if (hashes.length) { - var hash = hashes[0]; new MochaUI.Window({ id: 'uploadLimitPage', title: "QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]", @@ -257,7 +256,6 @@ initializeWindows = function() { downloadLimitFN = function() { var hashes = torrentsTable.selectedRowsIds(); if (hashes.length) { - var hash = hashes[0]; new MochaUI.Window({ id: 'downloadLimitPage', title: "QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]", @@ -388,12 +386,11 @@ initializeWindows = function() { var hash = hashes[0]; var row = torrentsTable.rows[hash]; if (row) { - var name = row.full_data.name; new MochaUI.Window({ id: 'renamePage', title: "QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]", loadMethod: 'iframe', - contentURL: 'rename.html?hash=' + hashes[0] + '&name=' + name, + contentURL: 'rename.html?hash=' + hashes[0] + '&name=' + row.full_data.name, scrollbars: false, resizable: false, maximizable: false,