Commit 590be7d4 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : ajout d'une condition à partir du moment ou il y a un champ dans le container

parent 0e902f41
......@@ -142,12 +142,12 @@
$('.field-options >div').remove();
var allFields = $(idContainer).find('.draggable').filter('.checkboxes, .radios, .deroulant, .multi-select');
if (!allFields) {
if ($(idContainer).find('.draggable').length <= 0 ) {
alert('Vous devez au minimum créé un champ avant de pouvoir ajouter une condition');
return false;
$.each(allFields, function (key, field) {
$(idContainer).find('.draggable').filter('.checkboxes, .radios, .deroulant, .multi-select').each(function (key, field) {
var name = $(field).find('input, option').attr('name');
var label = $(field).find('.labeler').html();
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