diff --git a/src/webui/www/private/scripts/contextmenu.js b/src/webui/www/private/scripts/contextmenu.js index 7831461bf..094fba5b3 100644 --- a/src/webui/www/private/scripts/contextmenu.js +++ b/src/webui/www/private/scripts/contextmenu.js @@ -190,7 +190,7 @@ window.qBittorrent.ContextMenu ??= (() => { e.stopPropagation(); } // record this as the trigger - this.options.element = $(el); + this.options.element = el; this.adjustMenuPosition(e); // show the menu this.show(); @@ -219,7 +219,7 @@ window.qBittorrent.ContextMenu ??= (() => { }); // hide on body click - $(document.body).addEventListener("click", () => { + document.body.addEventListener("click", () => { this.hide(); this.options.element = null; }); diff --git a/src/webui/www/private/scripts/download.js b/src/webui/www/private/scripts/download.js index e79d97978..38a4ce81e 100644 --- a/src/webui/www/private/scripts/download.js +++ b/src/webui/www/private/scripts/download.js @@ -131,7 +131,7 @@ window.qBittorrent.Download ??= (() => { } }; - $(window).addEventListener("load", async () => { + window.addEventListener("load", async () => { // user might load this page directly (via browser magnet handler) // so wait for crucial initialization to complete await window.parent.qBittorrent.Client.initializeCaches(); diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 07109e68e..883efdbaa 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -3168,7 +3168,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD $("rowMarkOfTheWeb").style.display = "none"; $("networkInterface").addEventListener("change", function() { - updateInterfaceAddresses($(this).value, ""); + updateInterfaceAddresses(this.value, ""); }); loadPreferences();