WebUI: fix lint errors

PR #23277.
This commit is contained in:
Tom Piccirello
2025-09-21 19:35:21 -07:00
committed by GitHub
parent 9696c99dbd
commit 3b744c3dba
3 changed files with 6 additions and 6 deletions

View File

@@ -3294,7 +3294,7 @@ window.qBittorrent.DynamicTable ??= (() => {
this.newColumn("checked", "", "", 30, true); this.newColumn("checked", "", "", 30, true);
this.newColumn("name", "", "", -1, true); this.newColumn("name", "", "", -1, true);
this.columns["checked"].updateTd = function(td, row) { this.columns["checked"].updateTd = (td, row) => {
if (document.getElementById(`cbRssDlRule${row.rowId}`) === null) { if (document.getElementById(`cbRssDlRule${row.rowId}`) === null) {
const checkbox = document.createElement("input"); const checkbox = document.createElement("input");
checkbox.type = "checkbox"; checkbox.type = "checkbox";
@@ -3391,7 +3391,7 @@ window.qBittorrent.DynamicTable ??= (() => {
this.newColumn("checked", "", "", 30, true); this.newColumn("checked", "", "", 30, true);
this.newColumn("name", "", "", -1, true); this.newColumn("name", "", "", -1, true);
this.columns["checked"].updateTd = function(td, row) { this.columns["checked"].updateTd = (td, row) => {
if (document.getElementById(`cbRssDlFeed${row.rowId}`) === null) { if (document.getElementById(`cbRssDlFeed${row.rowId}`) === null) {
const checkbox = document.createElement("input"); const checkbox = document.createElement("input");
checkbox.type = "checkbox"; checkbox.type = "checkbox";

View File

@@ -73,7 +73,7 @@ window.qBittorrent.pathAutofill ??= (() => {
.catch(error => {}); .catch(error => {});
}; };
function attachPathAutofill() { const attachPathAutofill = () => {
const directoryInputs = document.querySelectorAll(".pathDirectory:not(.pathAutoFillInitialized)"); const directoryInputs = document.querySelectorAll(".pathDirectory:not(.pathAutoFillInitialized)");
for (const input of directoryInputs) { for (const input of directoryInputs) {
input.addEventListener("input", function(event) { showPathSuggestions(this, "dirs"); }); input.addEventListener("input", function(event) { showPathSuggestions(this, "dirs"); });
@@ -85,7 +85,7 @@ window.qBittorrent.pathAutofill ??= (() => {
input.addEventListener("input", function(event) { showPathSuggestions(this, "all"); }); input.addEventListener("input", function(event) { showPathSuggestions(this, "all"); });
input.classList.add("pathAutoFillInitialized"); input.classList.add("pathAutoFillInitialized");
} }
} };
return exports(); return exports();
})(); })();

View File

@@ -832,7 +832,7 @@ window.qBittorrent.Search ??= (() => {
document.getElementById("numSearchResultsVisible").textContent = searchResultsTable.getFilteredAndSortedRows().length; document.getElementById("numSearchResultsVisible").textContent = searchResultsTable.getFilteredAndSortedRows().length;
}; };
const loadSearchResultsData = function(searchId) { const loadSearchResultsData = (searchId) => {
const state = searchState.get(searchId); const state = searchState.get(searchId);
const url = new URL("api/v2/search/results", window.location); const url = new URL("api/v2/search/results", window.location);
url.search = new URLSearchParams({ url.search = new URLSearchParams({
@@ -923,7 +923,7 @@ window.qBittorrent.Search ??= (() => {
}); });
}; };
const updateSearchResultsData = function(searchId) { const updateSearchResultsData = (searchId) => {
const state = searchState.get(searchId); const state = searchState.get(searchId);
clearTimeout(state.loadResultsTimer); clearTimeout(state.loadResultsTimer);
state.loadResultsTimer = loadSearchResultsData.delay(500, this, searchId); state.loadResultsTimer = loadSearchResultsData.delay(500, this, searchId);