Commit 9cbb84be authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Modification : du retour pour correspondre à l'envoie des données du serveur

parent 0ca4c58e
......@@ -102,7 +102,7 @@ $(document).ready(function () {
fieldOptions = options;
var valuesCheckboxesDefault = [];
$('input[name="'+contenu["name"]+'"]:checked').each(function() {
$('input[name="'+fieldName+'"]:checked').each(function() {
valuesCheckboxesDefault.push(this.id);
});
fieldDefault = valuesCheckboxesDefault;
......@@ -117,7 +117,7 @@ $(document).ready(function () {
fieldType = 'radios';
fieldName = $(draggable).find('input').attr('name');
fieldLabel = $(draggable).find('.labeler').html();
fieldDefault = $(draggable).find('input[name="'+contenu["name"]+'"]:checked').val();
fieldDefault = $(draggable).find('input[name="'+fieldName+'"]:checked').val();
var options = [];
$(draggable).find('input').each(function () {
......@@ -145,7 +145,7 @@ $(document).ready(function () {
fieldOptions = options;
var valuesDeroulantDefault = '';
$('option[name="'+contenu["name"]+'"]:checked').each(function() {
$('option[name="'+fieldName+'"]:checked').each(function() {
if ( this.value != '') {
valuesDeroulantDefault = this.id;
}
......@@ -170,7 +170,7 @@ $(document).ready(function () {
fieldOptions = options;
var valuesMultiSelectDefault = [];
$('option[name="'+contenu["name"]+'"]:checked').each(function() {
$('option[name="'+fieldName+'"]:checked').each(function() {
valuesMultiSelectDefault.push(this.index);
});
fieldDefault = valuesMultiSelectDefault;
......
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