WebUI: access attribute/property natively

It is now clearer to see what property is being accessed.
Previously mootools library would re-map attribute/property to another.

PR #21007.
This commit is contained in:
Chocobo1
2024-07-12 14:06:59 +08:00
committed by GitHub
parent 815ab180c1
commit 9c26e5d4d6
22 changed files with 889 additions and 892 deletions

View File

@@ -131,7 +131,7 @@ function submitLoginForm(event) {
document.addEventListener("DOMContentLoaded", () => {
const loginForm = document.getElementById("loginform");
loginForm.setAttribute("method", "POST");
loginForm.method = "POST";
loginForm.addEventListener("submit", submitLoginForm);
setupI18n();