mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
WebUI: Replace Mootools class list manipulation methods
All `addClass()`, `removeClass()` and `hasClass()` instances were changed to use `classList` equivalent: https://developer.mozilla.org/en-US/docs/Web/API/Element/classList PR #21946. --------- Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
9f0fa4c215
commit
7080f85b59
15 changed files with 143 additions and 167 deletions
|
@ -238,7 +238,7 @@ window.qBittorrent.Search ??= (() => {
|
|||
return;
|
||||
|
||||
const searchId = getSearchIdFromTab(tab);
|
||||
const isTabSelected = tab.hasClass("selected");
|
||||
const isTabSelected = tab.classList.contains("selected");
|
||||
const newTabToSelect = isTabSelected ? (tab.nextSibling || tab.previousSibling) : null;
|
||||
|
||||
const currentSearchId = getSelectedSearchId();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue