diff --git a/wwwroot/js/ui.js b/wwwroot/js/ui.js index 6347140..ce91f0a 100644 --- a/wwwroot/js/ui.js +++ b/wwwroot/js/ui.js @@ -762,6 +762,7 @@ export function openConfirmModal({ title, body, confirmLabel, cancelLabel = t("m
${body}
`; + const close = () => overlay.remove(); const actions = document.createElement("div"); actions.className = "stack horizontal"; const confirmBtn = document.createElement("button"); @@ -777,7 +778,6 @@ export function openConfirmModal({ title, body, confirmLabel, cancelLabel = t("m } panel.querySelector(".edit-body")?.appendChild(actions); - const close = () => overlay.remove(); overlay.addEventListener("click", (e) => { if ( e.target.classList.contains("edit-modal") ||