WebUI: prefer arrow function in callbacks

This commit is contained in:
Chocobo1
2024-05-27 22:57:28 +08:00
parent 55bff4f07a
commit 24a1537cdd
32 changed files with 215 additions and 214 deletions

View File

@@ -154,7 +154,7 @@
let submitted = false;
$("uploadForm").addEventListener("submit", function() {
$("uploadForm").addEventListener("submit", () => {
$("startTorrentHidden").value = $("startTorrent").checked ? "false" : "true";
$("dlLimitHidden").value = $("dlLimitText").value.toInt() * 1024;
@@ -164,7 +164,7 @@
submitted = true;
});
$("upload_frame").addEventListener("load", function() {
$("upload_frame").addEventListener("load", () => {
if (submitted)
window.parent.qBittorrent.Client.closeWindows();
});