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

@@ -40,13 +40,13 @@
if (!uriCategoryName)
return false;
$("categoryName").set("disabled", true);
$("categoryName").set("value", window.qBittorrent.Misc.escapeHtml(uriCategoryName));
$("savePath").set("value", window.qBittorrent.Misc.escapeHtml(uriSavePath));
$("categoryName").disabled = true;
$("categoryName").value = window.qBittorrent.Misc.escapeHtml(uriCategoryName);
$("savePath").value = window.qBittorrent.Misc.escapeHtml(uriSavePath);
$("savePath").focus();
}
else if (uriAction === "createSubcategory") {
$("categoryName").set("value", window.qBittorrent.Misc.escapeHtml(uriCategoryName));
$("categoryName").value = window.qBittorrent.Misc.escapeHtml(uriCategoryName);
$("categoryName").focus();
}
else {