mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Remove unused/superfluous variables
This commit is contained in:
parent
3f0fbc0810
commit
1f42ab8c4f
@ -146,7 +146,6 @@ initializeWindows = function() {
|
|||||||
uploadLimitFN = function() {
|
uploadLimitFN = function() {
|
||||||
var hashes = torrentsTable.selectedRowsIds();
|
var hashes = torrentsTable.selectedRowsIds();
|
||||||
if (hashes.length) {
|
if (hashes.length) {
|
||||||
var hash = hashes[0];
|
|
||||||
new MochaUI.Window({
|
new MochaUI.Window({
|
||||||
id: 'uploadLimitPage',
|
id: 'uploadLimitPage',
|
||||||
title: "QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]",
|
title: "QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]",
|
||||||
@ -257,7 +256,6 @@ initializeWindows = function() {
|
|||||||
downloadLimitFN = function() {
|
downloadLimitFN = function() {
|
||||||
var hashes = torrentsTable.selectedRowsIds();
|
var hashes = torrentsTable.selectedRowsIds();
|
||||||
if (hashes.length) {
|
if (hashes.length) {
|
||||||
var hash = hashes[0];
|
|
||||||
new MochaUI.Window({
|
new MochaUI.Window({
|
||||||
id: 'downloadLimitPage',
|
id: 'downloadLimitPage',
|
||||||
title: "QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]",
|
title: "QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]",
|
||||||
@ -388,12 +386,11 @@ initializeWindows = function() {
|
|||||||
var hash = hashes[0];
|
var hash = hashes[0];
|
||||||
var row = torrentsTable.rows[hash];
|
var row = torrentsTable.rows[hash];
|
||||||
if (row) {
|
if (row) {
|
||||||
var name = row.full_data.name;
|
|
||||||
new MochaUI.Window({
|
new MochaUI.Window({
|
||||||
id: 'renamePage',
|
id: 'renamePage',
|
||||||
title: "QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]",
|
title: "QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]",
|
||||||
loadMethod: 'iframe',
|
loadMethod: 'iframe',
|
||||||
contentURL: 'rename.html?hash=' + hashes[0] + '&name=' + name,
|
contentURL: 'rename.html?hash=' + hashes[0] + '&name=' + row.full_data.name,
|
||||||
scrollbars: false,
|
scrollbars: false,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user