mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
WebUI: Use native function for selecting elements by ID
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
$("trackersUrls").focus();
|
||||
$("addTrackersButton").addEventListener("click", (e) => {
|
||||
document.getElementById("trackersUrls").focus();
|
||||
document.getElementById("addTrackersButton").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
method: "POST",
|
||||
body: new URLSearchParams({
|
||||
hash: new URLSearchParams(window.location.search).get("hash"),
|
||||
urls: $("trackersUrls").value
|
||||
urls: document.getElementById("trackersUrls").value
|
||||
})
|
||||
})
|
||||
.then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user