Browse Source

Add explicit semicolon

adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
c34883f9af
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/webui/www/private/scripts/client.js
  2. 2
      src/webui/www/private/scripts/dynamicTable.js
  3. 8
      src/webui/www/private/scripts/prop-files.js
  4. 2
      src/webui/www/private/views/preferences.html
  5. 2
      src/webui/www/private/views/search.html

4
src/webui/www/private/scripts/client.js

@ -582,7 +582,7 @@ window.addEvent('load', function() {
torrentsTable.reselectRows(torrentsTableSelectedRows); torrentsTable.reselectRows(torrentsTableSelectedRows);
} }
syncRequestInProgress = false; syncRequestInProgress = false;
syncData(getSyncMainDataInterval()) syncData(getSyncMainDataInterval());
} }
}); });
syncRequestInProgress = true; syncRequestInProgress = true;
@ -599,7 +599,7 @@ window.addEvent('load', function() {
clearTimeout(syncMainDataTimer); clearTimeout(syncMainDataTimer);
syncMainDataTimer = syncMainData.delay(delay); syncMainDataTimer = syncMainData.delay(delay);
} }
} };
const processServerState = function() { const processServerState = function() {
let transfer_info = window.qBittorrent.Misc.friendlyUnit(serverState.dl_info_speed, true); let transfer_info = window.qBittorrent.Misc.friendlyUnit(serverState.dl_info_speed, true);

2
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); const size = window.qBittorrent.Misc.friendlyUnit(this.getRowValue(row), false);
td.set('text', size); td.set('text', size);
td.set('title', size); td.set('title', size);
} };
const displayPercentage = function(td, row) { const displayPercentage = function(td, row) {
const value = window.qBittorrent.Misc.friendlyPercentage(this.getRowValue(row)); const value = window.qBittorrent.Misc.friendlyPercentage(this.getRowValue(row));
td.set('text', value); td.set('text', value);

8
src/webui/www/private/scripts/prop-files.js

@ -160,7 +160,7 @@ window.qBittorrent.PropFiles = (function() {
setCheckboxPartial(checkbox); setCheckboxPartial(checkbox);
break; break;
} }
} };
const isPriorityComboExists = function(id) { const isPriorityComboExists = function(id) {
return ($('comboPrio' + id) !== null); return ($('comboPrio' + id) !== null);
@ -631,7 +631,7 @@ window.qBittorrent.PropFiles = (function() {
rowElem.addClass("invisible"); rowElem.addClass("invisible");
else else
rowElem.removeClass("invisible"); rowElem.removeClass("invisible");
} };
/** /**
* Update a node's collapsed state and icon * Update a node's collapsed state and icon
@ -653,7 +653,7 @@ window.qBittorrent.PropFiles = (function() {
collapseIcon.addClass("rotate"); collapseIcon.addClass("rotate");
else else
collapseIcon.removeClass("rotate"); collapseIcon.removeClass("rotate");
} };
const _isCollapsed = function(node) { const _isCollapsed = function(node) {
const span = $('filesTablefileName' + node.rowId); const span = $('filesTablefileName' + node.rowId);
@ -692,7 +692,7 @@ window.qBittorrent.PropFiles = (function() {
}); });
}); });
torrentFilesTable.altRow(); torrentFilesTable.altRow();
} };
/** /**
* Collapses a folder node with the option to recursively collapse all children * Collapses a folder node with the option to recursively collapse all children

2
src/webui/www/private/views/preferences.html

@ -1442,7 +1442,7 @@
$('optionalIPAddressToBind').setProperty('value', default_addr); $('optionalIPAddressToBind').setProperty('value', default_addr);
} }
}).send(); }).send();
} };
const loadPreferences = function() { const loadPreferences = function() {
const url = 'api/v2/app/preferences'; const url = 'api/v2/app/preferences';

2
src/webui/www/private/views/search.html

@ -486,7 +486,7 @@
searchPlugins.length = 0; searchPlugins.length = 0;
response.forEach(function(plugin) { response.forEach(function(plugin) {
searchPlugins.push(plugin); searchPlugins.push(plugin);
}) });
const pluginsHtml = []; const pluginsHtml = [];
pluginsHtml.push('<option value="enabled">QBT_TR(Only enabled)QBT_TR[CONTEXT=SearchEngineWidget]</option>'); pluginsHtml.push('<option value="enabled">QBT_TR(Only enabled)QBT_TR[CONTEXT=SearchEngineWidget]</option>');

Loading…
Cancel
Save