Add postcode reset to checkout.
This commit is contained in:
14
assets/reset-postcode.js
Normal file
14
assets/reset-postcode.js
Normal file
@@ -0,0 +1,14 @@
|
||||
document.addEventListener("click", function (event) {
|
||||
event.preventDefault();
|
||||
if (event.target.matches(".reset-postcode-show-comfirm")) {
|
||||
console.log("link1 button clicked!");
|
||||
document.querySelector(".bevestiging").dataset.open = true;
|
||||
}
|
||||
if (event.target.matches(".accept")) {
|
||||
console.log("link2 button clicked!");
|
||||
}
|
||||
if (event.target.matches(".decline")) {
|
||||
console.log("link3 button clicked!");
|
||||
document.querySelector(".bevestiging").dataset.open = false;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user