A user confirmation that will never be displayed
After reading the code, I asked him whether he had tested it. The answer was, of course, yes. My answer was that I think there is a small bug around line 67 of his script.
function confirmation() {
if (trim(document.getElementById('ANIMATION').value) == '' ) {
alert('Merci de remplir les champs du formulaire avant validation');
return false;
} else {
return true;
}
var answer = confirm('En cliquant sur le bouton "Valider définitivement" les informations que vous avez saisie, cliquez sur OK, sinon, cliquez sur Annuler');
if (answer) {
return true;
} else {
return false;
}
}