WebUI: Replace getElements & getChildren

This PR further reduces Mootools usage.
PR #22220.
This commit is contained in:
skomerko
2025-02-04 10:08:18 +01:00
committed by GitHub
parent 463700b76d
commit 9c2e698514
6 changed files with 53 additions and 65 deletions

View File

@@ -166,7 +166,7 @@ window.qBittorrent.Search ??= (() => {
};
const numSearchTabs = () => {
return $("searchTabs").getElements("li").length;
return document.querySelectorAll("#searchTabs li").length;
};
const getSearchIdFromTab = (tab) => {