Skip to content

Commit

Permalink
Update modal.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Jun 10, 2024
1 parent 132e630 commit 452422b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions frontend/www/src/modules/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]!;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 452422b

Please sign in to comment.