Skip to content

Commit

Permalink
WebUI: locate element faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Nov 27, 2024
1 parent b84a51c commit f8aaea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webui/www/private/views/cookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
addCookie();
});

document.querySelector("#saveButton").addEventListener("click", (event) => {
document.getElementById("saveButton").addEventListener("click", (event) => {
save();
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/webui/www/private/views/log.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit f8aaea3

Please sign in to comment.