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

@@ -288,7 +288,7 @@
};
const filterTextChanged = () => {
const value = $("filterTextInput").get("value").trim();
const value = $("filterTextInput").value.trim();
if (inputtedFilterText !== value) {
inputtedFilterText = value;
logFilterChanged();
@@ -337,8 +337,8 @@
if (curTab === undefined)
curTab = currentSelectedTab;
$("numFilteredLogs").set("text", tableInfo[curTab].instance.filteredLength());
$("numTotalLogs").set("text", tableInfo[curTab].instance.getRowIds().length);
$("numFilteredLogs").textContent = tableInfo[curTab].instance.filteredLength();
$("numTotalLogs").textContent = tableInfo[curTab].instance.getRowIds().length;
};
const syncLogData = (curTab) => {
@@ -369,12 +369,12 @@
onFailure: function(response) {
const errorDiv = $("error_div");
if (errorDiv)
errorDiv.set("text", "QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]");
errorDiv.textContent = "QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]";
tableInfo[curTab].progress = false;
syncLogWithInterval(10000);
},
onSuccess: function(response) {
$("error_div").set("text", "");
$("error_div").textContent = "";
if ($("logTabColumn").hasClass("invisible"))
return;