From 8dc1d76fe6153c1d7d1a73e456f5368d2320e0f0 Mon Sep 17 00:00:00 2001 From: tofulm Date: Fri, 12 Jun 2020 15:31:09 +0200 Subject: [PATCH] stoppropagation --- js/gamutable.es6.js | 1 + js/gamutable.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 989cd32..b2d4be4 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -27,6 +27,7 @@ jQuery(function () { // lancement d'une modalbox $('#app').on('click', '.modalbox', function (e) { + e.stopPropagation(); e.preventDefault(); let confirmation = $(this).data('confirm'); if (confirmation !== undefined) { diff --git a/js/gamutable.js b/js/gamutable.js index 90aaf83..cc18c27 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -50,6 +50,7 @@ jQuery(function () { }); // lancement d'une modalbox $('#app').on('click', '.modalbox', function (e) { + e.stopPropagation(); e.preventDefault(); var confirmation = $(this).data('confirm');