From eab2e0c12763b4055c66238719a71204a3ea4d9b Mon Sep 17 00:00:00 2001 From: Gabriel Poma Date: Wed, 19 Apr 2023 15:42:48 +0200 Subject: [PATCH] suppression: confirm --- public/js/metadata.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/metadata.js b/public/js/metadata.js index 5d38295..1f17ec9 100644 --- a/public/js/metadata.js +++ b/public/js/metadata.js @@ -74,6 +74,8 @@ var addMetadata = function(key, value) { } const deleteMetadata = function(el) { + if (confirm("Souhaitez-vous supprimer ce champ ?") === false) return; + const input = el.closest('.input-metadata') input.remove() }