This commit is contained in:
Oliver
2025-10-03 10:17:47 -03:00
parent f3c2acfae7
commit b3a16f81c8

View File

@@ -94,17 +94,8 @@ function createModal() {
`;
document.body.appendChild(modal);
document.getElementById("closeModal").onclick = () => { modal.style.display = "none"; };
modal.onclick = (e) => { if (e.target === modal) modal.style.display = "none"; };
// Close confirmation
modal.querySelector("#closeConfirmation").onclick = () => {
modal.style.display = "none";
document.getElementById("buyForm").style.display = "flex";
document.getElementById("confirmation").style.display = "none";
};
return modal;
}