Commit bfa3d4cd authored by Christian BUFFIN's avatar Christian BUFFIN
Browse files

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

parent fbcb315d
......@@ -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