mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
WebUI: Use native function for selecting elements by ID
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
$("cancelBtn").focus();
|
||||
$("cancelBtn").addEventListener("click", (e) => {
|
||||
document.getElementById("cancelBtn").focus();
|
||||
document.getElementById("cancelBtn").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
||||
});
|
||||
$("confirmBtn").addEventListener("click", (e) => {
|
||||
document.getElementById("confirmBtn").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user