WebUI: locate element faster

This commit is contained in:
Chocobo1 2024-11-27 16:16:27 +08:00
parent b84a51c76d
commit f8aaea3476
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 2 additions and 2 deletions

View file

@ -178,7 +178,7 @@
addCookie();
});
document.querySelector("#saveButton").addEventListener("click", (event) => {
document.getElementById("saveButton").addEventListener("click", (event) => {
save();
});
};

View file

@ -97,7 +97,7 @@
</select>
<input type="text" id="filterTextInput" oninput="window.qBittorrent.Log.filterTextChanged()" placeholder="QBT_TR(Filter logs)QBT_TR[CONTEXT=ExecutionLogWidget]" aria-label="QBT_TR(Filter logs)QBT_TR[CONTEXT=ExecutionLogWidget]" autocomplete="off" autocorrect="off" autocapitalize="none">
<button type="button" title="Clear input" onclick="javascript:document.querySelector('#filterTextInput').value='';window.qBittorrent.Log.filterTextChanged();">QBT_TR(Clear)QBT_TR[CONTEXT=ExecutionLogWidget]</button>
<button type="button" title="Clear input" onclick="javascript:document.getElementById('filterTextInput').value='';window.qBittorrent.Log.filterTextChanged();">QBT_TR(Clear)QBT_TR[CONTEXT=ExecutionLogWidget]</button>
</div>
<div id="logFilterSummary">