hmm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user