mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
252 B
JavaScript
8 lines
252 B
JavaScript
9 months ago
|
document.addEventListener('click', function(e) {
|
||
|
if (e.target.classList.contains('delete-confirm')) {
|
||
|
if (!confirm('Are you sure you want to delete this item?')) { // WIP Need to translate
|
||
|
e.preventDefault();
|
||
|
}
|
||
|
}
|
||
|
});
|