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() }