mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 17:12:31 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user