diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 0f69e4b1d..cb797bb8c 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -3294,7 +3294,7 @@ window.qBittorrent.DynamicTable ??= (() => { this.newColumn("checked", "", "", 30, 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) { const checkbox = document.createElement("input"); checkbox.type = "checkbox"; @@ -3391,7 +3391,7 @@ window.qBittorrent.DynamicTable ??= (() => { this.newColumn("checked", "", "", 30, 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) { const checkbox = document.createElement("input"); checkbox.type = "checkbox"; diff --git a/src/webui/www/private/scripts/pathAutofill.js b/src/webui/www/private/scripts/pathAutofill.js index 574120251..9c88da9e8 100644 --- a/src/webui/www/private/scripts/pathAutofill.js +++ b/src/webui/www/private/scripts/pathAutofill.js @@ -73,7 +73,7 @@ window.qBittorrent.pathAutofill ??= (() => { .catch(error => {}); }; - function attachPathAutofill() { + const attachPathAutofill = () => { const directoryInputs = document.querySelectorAll(".pathDirectory:not(.pathAutoFillInitialized)"); for (const input of directoryInputs) { input.addEventListener("input", function(event) { showPathSuggestions(this, "dirs"); }); @@ -85,7 +85,7 @@ window.qBittorrent.pathAutofill ??= (() => { input.addEventListener("input", function(event) { showPathSuggestions(this, "all"); }); input.classList.add("pathAutoFillInitialized"); } - } + }; return exports(); })(); diff --git a/src/webui/www/private/scripts/search.js b/src/webui/www/private/scripts/search.js index b0f30cdfa..7525e7633 100644 --- a/src/webui/www/private/scripts/search.js +++ b/src/webui/www/private/scripts/search.js @@ -832,7 +832,7 @@ window.qBittorrent.Search ??= (() => { document.getElementById("numSearchResultsVisible").textContent = searchResultsTable.getFilteredAndSortedRows().length; }; - const loadSearchResultsData = function(searchId) { + const loadSearchResultsData = (searchId) => { const state = searchState.get(searchId); const url = new URL("api/v2/search/results", window.location); url.search = new URLSearchParams({ @@ -923,7 +923,7 @@ window.qBittorrent.Search ??= (() => { }); }; - const updateSearchResultsData = function(searchId) { + const updateSearchResultsData = (searchId) => { const state = searchState.get(searchId); clearTimeout(state.loadResultsTimer); state.loadResultsTimer = loadSearchResultsData.delay(500, this, searchId);