hmm
This commit is contained in:
1 parent
f3c2acfae7
commit
b3a16f81c8
1 file changed
-9
@@ -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