Commit 3c288250 authored by Christian BUFFIN's avatar Christian BUFFIN Committed by Théo GUILLON
Browse files

Correction: il n'était plus possible d'ajouter un champ de formulaire

parent 9651bbd2
......@@ -878,7 +878,7 @@ let createForm = function(typeCreateForm) {
return false;
}
if ($('#'+nameField) !== 0) {
if ($('#'+nameField).length !== 0) {
alert('Un champ possède déjà ce nom de variable !');
return false;
}
......@@ -1254,4 +1254,4 @@ let createForm = function(typeCreateForm) {
$('#'+idBtnApplicable).closest(fieldOptions).find('input.nameForm').attr('readonly', true);
}
};
\ No newline at end of file
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment