From 0577cf588c784a11b0176e49447f1c9c431c6744 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 7 Jan 2020 01:59:02 +0800 Subject: [PATCH 1/3] Remove duplicate line --- src/webui/www/private/views/preferences.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 3e8270b89..24ae28bec 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -1109,7 +1109,6 @@ updateQueueingSystem: updateQueueingSystem, updateSlowTorrentsSettings: updateSlowTorrentsSettings, updateMaxRatioTimeEnabled: updateMaxRatioTimeEnabled, - updateMaxRatioTimeEnabled: updateMaxRatioTimeEnabled, updateAddTrackersEnabled: updateAddTrackersEnabled, updateHttpsSettings: updateHttpsSettings, updateBypasssAuthSettings: updateBypasssAuthSettings, From c34883f9afe34246d90acf9deb97a05e8d052c4c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 7 Jan 2020 02:00:12 +0800 Subject: [PATCH 2/3] Add explicit semicolon --- src/webui/www/private/scripts/client.js | 4 ++-- src/webui/www/private/scripts/dynamicTable.js | 2 +- src/webui/www/private/scripts/prop-files.js | 8 ++++---- src/webui/www/private/views/preferences.html | 2 +- src/webui/www/private/views/search.html | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index 174713fbd..7f214860c 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -582,7 +582,7 @@ window.addEvent('load', function() { torrentsTable.reselectRows(torrentsTableSelectedRows); } syncRequestInProgress = false; - syncData(getSyncMainDataInterval()) + syncData(getSyncMainDataInterval()); } }); syncRequestInProgress = true; @@ -599,7 +599,7 @@ window.addEvent('load', function() { clearTimeout(syncMainDataTimer); syncMainDataTimer = syncMainData.delay(delay); } - } + }; const processServerState = function() { let transfer_info = window.qBittorrent.Misc.friendlyUnit(serverState.dl_info_speed, true); diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index bb673e0e6..1916fe203 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -1716,7 +1716,7 @@ window.qBittorrent.DynamicTable = (function() { const size = window.qBittorrent.Misc.friendlyUnit(this.getRowValue(row), false); td.set('text', size); td.set('title', size); - } + }; const displayPercentage = function(td, row) { const value = window.qBittorrent.Misc.friendlyPercentage(this.getRowValue(row)); td.set('text', value); diff --git a/src/webui/www/private/scripts/prop-files.js b/src/webui/www/private/scripts/prop-files.js index 6c85896a0..78fdba512 100644 --- a/src/webui/www/private/scripts/prop-files.js +++ b/src/webui/www/private/scripts/prop-files.js @@ -160,7 +160,7 @@ window.qBittorrent.PropFiles = (function() { setCheckboxPartial(checkbox); break; } - } + }; const isPriorityComboExists = function(id) { return ($('comboPrio' + id) !== null); @@ -631,7 +631,7 @@ window.qBittorrent.PropFiles = (function() { rowElem.addClass("invisible"); else rowElem.removeClass("invisible"); - } + }; /** * Update a node's collapsed state and icon @@ -653,7 +653,7 @@ window.qBittorrent.PropFiles = (function() { collapseIcon.addClass("rotate"); else collapseIcon.removeClass("rotate"); - } + }; const _isCollapsed = function(node) { const span = $('filesTablefileName' + node.rowId); @@ -692,7 +692,7 @@ window.qBittorrent.PropFiles = (function() { }); }); torrentFilesTable.altRow(); - } + }; /** * Collapses a folder node with the option to recursively collapse all children diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 24ae28bec..448b5f461 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -1442,7 +1442,7 @@ $('optionalIPAddressToBind').setProperty('value', default_addr); } }).send(); - } + }; const loadPreferences = function() { const url = 'api/v2/app/preferences'; diff --git a/src/webui/www/private/views/search.html b/src/webui/www/private/views/search.html index eb1bfb0ce..ef980438e 100644 --- a/src/webui/www/private/views/search.html +++ b/src/webui/www/private/views/search.html @@ -486,7 +486,7 @@ searchPlugins.length = 0; response.forEach(function(plugin) { searchPlugins.push(plugin); - }) + }); const pluginsHtml = []; pluginsHtml.push(''); From c556b20018fba2dc439af12f63ebfdadd03a6092 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 7 Jan 2020 02:01:44 +0800 Subject: [PATCH 3/3] Remove unused variable --- src/webui/www/private/scripts/prop-files.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webui/www/private/scripts/prop-files.js b/src/webui/www/private/scripts/prop-files.js index 78fdba512..bd2a28e9b 100644 --- a/src/webui/www/private/scripts/prop-files.js +++ b/src/webui/www/private/scripts/prop-files.js @@ -642,7 +642,6 @@ window.qBittorrent.PropFiles = (function() { if (span === null) return; const td = span.parentElement; - const rowElem = td.parentElement; // store collapsed state td.set("data-collapsed", isCollapsed);