WebUI: use native function for selecting elements

PR #22179.
This commit is contained in:
Chocobo1
2025-01-20 23:36:11 +08:00
committed by GitHub
parent 1ee84033ec
commit f8c48349a1
7 changed files with 30 additions and 55 deletions

View File

@@ -1313,10 +1313,10 @@ const initializeWindows = () => {
});
// Deactivate menu header links
$$("a.returnFalse").each((el) => {
for (const el of document.querySelectorAll("a.returnFalse")) {
el.addEventListener("click", (e) => {
e.preventDefault();
e.stopPropagation();
});
});
}
};