5 lines
204 B
JavaScript
5 lines
204 B
JavaScript
document.querySelectorAll("a.remove")
|
|
.forEach(e => e.addEventListener("click", ev => {
|
|
if (!confirm("Do you really want to remove this sandwich ?"))
|
|
ev.preventDefault();
|
|
}));
|