From 452422b5cac8afab9a400412d8b3f83e6cce7a73 Mon Sep 17 00:00:00 2001 From: Alexejhero <32238504+Alexejhero@users.noreply.github.com> Date: Mon, 10 Jun 2024 23:17:43 +0200 Subject: [PATCH] Update modal.ts --- frontend/www/src/modules/modal.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/frontend/www/src/modules/modal.ts b/frontend/www/src/modules/modal.ts index 3287b7b..b7d42c3 100644 --- a/frontend/www/src/modules/modal.ts +++ b/frontend/www/src/modules/modal.ts @@ -3,21 +3,11 @@ import { ebsFetch } from "../util/ebs"; import { getConfig } from "../util/config"; import { logToDiscord } from "../util/logger"; -document.body.addEventListener("click", (e) => { - e.stopPropagation(); - e.preventDefault(); -}); - document.body.addEventListener("dblclick", (e) => { e.stopPropagation(); e.preventDefault(); }); -document.addEventListener("auxclick", (e) => { - e.stopPropagation(); - e.preventDefault(); -}); - /* Containers */ const $modalWrapper = document.getElementById("modal-wrapper")!; const $modal = document.getElementById("modal-wrapper")!.getElementsByClassName("modal")[0]!; @@ -422,7 +412,7 @@ function addAnnounceCheckbox(modal: HTMLFormElement, announce: AnnounceType | un input.onformdata = (e) => { e.formData.delete(announceParam.name); }; - input.onchange = (e) => { + input.onchange = (e) => { cart!.announce = input.checked; } if (announce === AnnounceType.DefaultAnnounce) {