mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: Replace getElements & getChildren
This PR further reduces Mootools usage. PR #22220.
This commit is contained in:
@@ -166,7 +166,7 @@ window.qBittorrent.Search ??= (() => {
|
||||
};
|
||||
|
||||
const numSearchTabs = () => {
|
||||
return $("searchTabs").getElements("li").length;
|
||||
return document.querySelectorAll("#searchTabs li").length;
|
||||
};
|
||||
|
||||
const getSearchIdFromTab = (tab) => {
|
||||
|
||||
Reference in New Issue
Block a user