stoppropagation

This commit is contained in:
Christophe 2020-06-12 15:31:09 +02:00
parent 383c0e157f
commit 8dc1d76fe6
2 changed files with 2 additions and 0 deletions

View file

@ -27,6 +27,7 @@ jQuery(function () {
// lancement d'une modalbox // lancement d'une modalbox
$('#app').on('click', '.modalbox', function (e) { $('#app').on('click', '.modalbox', function (e) {
e.stopPropagation();
e.preventDefault(); e.preventDefault();
let confirmation = $(this).data('confirm'); let confirmation = $(this).data('confirm');
if (confirmation !== undefined) { if (confirmation !== undefined) {

View file

@ -50,6 +50,7 @@ jQuery(function () {
}); // lancement d'une modalbox }); // lancement d'une modalbox
$('#app').on('click', '.modalbox', function (e) { $('#app').on('click', '.modalbox', function (e) {
e.stopPropagation();
e.preventDefault(); e.preventDefault();
var confirmation = $(this).data('confirm'); var confirmation = $(this).data('confirm');