Subversion Repositories eFlore/Applications.cel

Rev

Rev 3217 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3217 Rev 3239
1
"use strict";
1
"use strict";
2
 
2
 
3
/*************************************
3
/*************************************
4
 *  Fonctions de Style et Affichage  *
4
 *  Fonctions de Style et Affichage  *
5
 *      des éléments "spéciaux"      *
5
 *      des éléments "spéciaux"      *
6
 *************************************/
6
 *************************************/
-
 
7
 
-
 
8
// Volet de profil/déconnexion
-
 
9
function connexionDprodownMenu() {
-
 
10
  $( '#utilisateur-connecte .volet-toggle, #profil-utilisateur a, #deconnexion a' ).click( function( event ) {
-
 
11
    event.preventDefault();
-
 
12
    $( '#utilisateur-connecte .volet-menu' ).toggleClass( 'hidden' );
-
 
13
  });
-
 
14
}
7
 
15
 
8
// Logique d'affichage pour le input type=file
16
// Logique d'affichage pour le input type=file
9
function inputFile() {
17
function inputFile() {
10
  // Initialisation des variables
18
  // Initialisation des variables
11
  var $fileInput  = $( '.input-file' ),
19
  var $fileInput  = $( '.input-file' ),
12
      $button     = $( '.label-file' );
20
      $button     = $( '.label-file' );
13
  // Action lorsque la "barre d'espace" ou "Entrée" est pressée
21
  // Action lorsque la "barre d'espace" ou "Entrée" est pressée
14
  $( '.label-file' ).keydown( function( event ) {
22
  $( '.label-file' ).keydown( function( event ) {
15
    if ( event.keyCode == 13 || event.keyCode == 32 ) {
23
    if ( event.keyCode == 13 || event.keyCode == 32 ) {
16
      $( '#' + $( this ).attr( 'for' ) + '.input-file' ).click();
24
      $( '#' + $( this ).attr( 'for' ) + '.input-file' ).click();
17
    }
25
    }
18
  });
26
  });
19
  // // Affiche un retour visuel dès que input:file change
-
 
20
  // $('#form-supp').on( 'change', '.input-file', function( event ) {
-
 
21
  //   // Il est possible de supprimer un fichier
-
 
22
  //   // donc on vérifie que le 'change' est un ajout ou modification
-
 
23
  //   if( !$.isEmptyObject( event.target.files[0] ) ) {
-
 
24
  //     var file = event.target.files[0],
-
 
25
  //         fileId = $( this ).attr( 'id' ),
-
 
26
  //         $thisFile = $( this ).parent('.label-file.' + fileId ),
-
 
27
  //         $imageContainer = $( '#miniatures' ),
-
 
28
  //         $theReturn = $( '.' + fileId  + 'Img') || false,
-
 
29
  //         fileImgHtml = '';
-
 
30
 
-
 
31
 
-
 
32
  //     if( file.type.match( 'image' ) ) {
-
 
33
  //       fileImgHtml =
-
 
34
  //         '<div class="' + fileId + 'Img mb-1">'+
-
 
35
  //           '<p> ' + file.name + '</p>'+
-
 
36
  //           '<img src="' + URL.createObjectURL( file ) + '">'+
-
 
37
  //         '</div>';
-
 
38
  //     }
-
 
39
  //     // Permettre d'enregistrer une nouvelle image
-
 
40
  //     if( 0 < $theReturn.length ) {
-
 
41
  //       // Changement du fichier
-
 
42
  //       $theReturn.html( fileImgHtml );
-
 
43
  //     } else {
-
 
44
  //       $imageContainer.append( fileImgHtml );
-
 
45
  //       $imageContainer.append( $thisFile  );
-
 
46
 
-
 
47
  //       $( '#photos-conteneur' ).html(
-
 
48
  //           '<label for="fichier' + countFiles + '" class="label-file btn btn-default fichier' + countFiles + '">'+
-
 
49
  //             '<i class="fas fa-download"></i> Ajouter une image'+
-
 
50
  //             '<input type="file" id="fichier' + countFiles + '" name="fichier' + countFiles + '" class="input-file" accept="image/jpeg">'+
-
 
51
  //             '<input type="hidden" name="MAX_FILE_SIZE" value="5242880">'+
-
 
52
  //           '</label>'+
-
 
53
  //           '<hr>'
-
 
54
  //       );
-
 
55
  //       countFiles++;
-
 
56
  //     }
-
 
57
  //     // Changer le text
-
 
58
  //     $thisFile.find( '.label-text').html( '<i class="fas fa-exchange-alt"></i> Changer cette image');
-
 
59
  //     $thisFile.css( 'background-color', '#ea9973' );
-
 
60
  //     $thisFile.hover( function() {
-
 
61
  //       $( this ).css( 'background-color', 'rgba(234, 153, 115, 0.7)' );
-
 
62
  //     });
-
 
63
  //     $( '.' + fileId  + 'Img img').attr( 'width', $thisFile.outerWidth() );
-
 
64
 
-
 
65
  //   }
-
 
66
  // });
-
 
67
  // // Annuler le téléchargement
-
 
68
  // $( '.remove-file' ).click( function() {
-
 
69
  //   var $thisFileInput = $( this ).prev( '.input-file-container' ).find( '.input-file' );
-
 
70
  //   $thisFileInput.wrap( '<form>' ).closest( 'form' ).get(0).reset();
-
 
71
  //   $thisFileInput.triggerHandler( 'change' );
-
 
72
  //   $thisFileInput.unwrap();
-
 
73
  //   $( this ).next( '.file-return' ).addClass( 'hidden' ).empty();
-
 
74
  // });
-
 
75
}
27
}
76
 
28
 
77
// Style et affichage des list-checkboxes
29
// Style et affichage des list-checkboxes
78
function inputListCheckbox() {
30
function inputListCheckbox() {
79
  // On écoute le click sur une list-checkbox ('.selectBox')
31
  // On écoute le click sur une list-checkbox ('.selectBox')
80
  // à tout moment de son insertion dans le dom
32
  // à tout moment de son insertion dans le dom
81
  // Todo :
33
  // Todo :
82
  // _ S'assurer de bien viser la bonne list-checkbox
34
  // _ S'assurer de bien viser la bonne list-checkbox
83
  // _ Au click sur un autre champ remballer la list-checkbox
35
  // _ Au click sur un autre champ remballer la list-checkbox
84
  $( document ).click( function( event ) {
36
  $( document ).click( function( event ) {
85
    var target = event.target;
37
    var target = event.target;
86
 
38
 
87
    if ( !$( target ).is( '.overSelect' ) && 0 === $( target ).closest( '.checkboxes' ).length ) {
39
    if ( !$( target ).is( '.overSelect' ) && 0 === $( target ).closest( '.checkboxes' ).length ) {
88
      $( '.checkboxes' ).each( function () {
40
      $( '.checkboxes' ).each( function () {
89
        $( this ).addClass( 'hidden' );
41
        $( this ).addClass( 'hidden' );
90
      });
42
      });
91
      $( '.selectBox select.focus' ).each( function() {
43
      $( '.selectBox select.focus' ).each( function() {
92
        $( this ).removeClass( 'focus' );
44
        $( this ).removeClass( 'focus' );
93
      });
45
      });
94
    }
46
    }
95
  });
47
  });
96
 
48
 
97
  $( '#zone-appli' ).on( 'click' , '.selectBox' , function() {
49
  $( '#zone-appli' ).on( 'click' , '.selectBox' , function() {
98
    // $( '.checkboxes[data-id="' + $(this).attr( 'data-id' ) + '"]' ).toggleClass( 'hidden' );
50
    // $( '.checkboxes[data-id="' + $(this).attr( 'data-id' ) + '"]' ).toggleClass( 'hidden' );
99
    $( this ).next().toggleClass( 'hidden' );
51
    $( this ).next().toggleClass( 'hidden' );
100
    $( this ).find( 'select' ).toggleClass( 'focus' );
52
    $( this ).find( 'select' ).toggleClass( 'focus' );
101
 
53
 
102
  });
54
  });
103
}
55
}
104
 
56
 
105
// Style et affichage des input type="range"
57
// Style et affichage des input type="range"
106
function inputRangeDisplayNumber() {
58
function inputRangeDisplayNumber() {
107
  $( '#zone-appli' ).on( 'input' , '.range input[type="range"]' , function () {
59
  $( 'input[type="range"]' ).each( function() {
-
 
60
 
108
    $( this ).next( 'input[type="number"]' ).val ( $( this ).val() );
61
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
109
  });
62
  });
110
  $( '#zone-appli' ).on( 'input' , '.range input[type="number"]' , function () {
63
  $( '#zone-supp' ).on( 'input' , 'input[type="range"]' , function () {
-
 
64
    console.log( 'nello' );
111
    $( this ).prev( 'input[type="range"]' ).val ( $( this ).val() );
65
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
112
  });
66
  });
113
}
67
}
114
 
68
 
115
// Activation/Desactivation et contenu de la modale Bootstrap
69
// Activation/Desactivation et contenu de la modale Bootstrap
116
// https://getbootstrap.com/docs/3.3/javascript/#modals
70
// https://getbootstrap.com/docs/3.3/javascript/#modals
117
function previewFieldHelpModal() {
71
function newFieldsHelpModal() {
118
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
72
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
119
    var thisFieldKey = $( this ).data( 'key' ),
73
    var thisFieldKey = $( this ).data( 'key' ),
120
        // filePath ci dessous est un test, obtenir une vraie url une fois les fichiers d'aide accessibles
-
 
121
        filePath = 'https://beta.tela-botanica.org/tmp/eflore_v5_cache/pdf/Fabaceae-3497041375.pdf',
-
 
122
        fileMimeType = $( this ).data( 'mime-type' );
74
        fileMimeType = $( this ).data( 'mime-type' );
123
 
75
 
124
    // Titre
76
    // Titre
125
    $( '#help-modal-label' ).text( 'Aide pour : ' +  $( this ).data( 'name' ) );
77
    $( '#help-modal-label' ).text( 'Aide pour : ' +  $( this ).data( 'name' ) );
126
 
78
 
127
    if( fileMimeType.match( 'image' ) ) {
79
    if( fileMimeType.match( 'image' ) ) {
128
      $( '#print_content' ).append( '<img src="' + filePath + '" style="max-width:100%">' );
80
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
129
    } else if( fileMimeType.match( 'pdf' ) ) {
81
      // var extention = 'jpg';
130
      $( '#print_content' ).append( '<iframe src="' + filePath + '" width="100%" height="650" align="middle" scrolling="no" frameborder="0"></iframe>' );
82
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + thisFieldKey + '.' + extention + '" style="max-width:100%" alt="' + thisFieldKey + '" />' );
131
    }
83
    }
132
 
84
 
133
    // Sortie avec la touche escape
85
    // Sortie avec la touche escape
134
    $( '#help-modal' ).modal( { keyboard : true } );
86
    $( '#help-modal' ).modal( { keyboard : true } );
135
    // Affichage
87
    // Affichage
136
    $( '#help-modal' ).modal({ show: true });
88
    $( '#help-modal' ).modal({ show: true });
137
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
89
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
138
    // Message dans la doc de bootstrap :
90
    // Message dans la doc de bootstrap :
139
    // Due to how HTML5 defines its semantics,
91
    // Due to how HTML5 defines its semantics,
140
    // the autofocus HTML attribute has no effect in Bootstrap modals.
92
    // the autofocus HTML attribute has no effect in Bootstrap modals.
141
    // To achieve the same effect, use some custom JavaScript
93
    // To achieve the same effect, use some custom JavaScript
142
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
94
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
143
      $( '#myInput' ).trigger( 'focus' );
95
      $( '#myInput' ).trigger( 'focus' );
144
    })
96
    })
145
    // Réinitialisation
97
    // Réinitialisation
146
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
98
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
147
      $( '#help-modal-label' ).text();
99
      $( '#help-modal-label' ).text();
148
      $( '#print_content' ).empty();
100
      $( '#print_content' ).empty();
149
    })
101
    })
150
  });
102
  });
151
}
103
}
-
 
104
 
-
 
105
// Activation/Desactivation et contenu de la modale Bootstrap
-
 
106
// https://getbootstrap.com/docs/3.3/javascript/#modals
-
 
107
function projetHelpModale() {
-
 
108
  $( '#info-button' ).click( function ( event ) {
-
 
109
    var fileMimeType = $( this ).data( 'mime-info' );
-
 
110
 
-
 
111
    // Titre
-
 
112
    $( '#help-modal-label' ).text( 'Aide du projet : ' +  $( '#titre-projet' ).text() );
-
 
113
 
-
 
114
    if( fileMimeType.match( 'image' ) ) {
-
 
115
 
-
 
116
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
-
 
117
 
-
 
118
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + 'info.' + extention + '" style="max-width:100%" alt="info projet" />' );
-
 
119
    }
-
 
120
 
-
 
121
    // Sortie avec la touche escape
-
 
122
    $( '#help-modal' ).modal( { keyboard : true } );
-
 
123
    // Affichage
-
 
124
    $( '#help-modal' ).modal({ show: true });
-
 
125
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
-
 
126
    // Message dans la doc de bootstrap :
-
 
127
    // Due to how HTML5 defines its semantics,
-
 
128
    // the autofocus HTML attribute has no effect in Bootstrap modals.
-
 
129
    // To achieve the same effect, use some custom JavaScript
-
 
130
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
-
 
131
      $( '#myInput' ).trigger( 'focus' );
-
 
132
    })
-
 
133
    // Réinitialisation
-
 
134
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
-
 
135
      $( '#help-modal-label' ).text();
-
 
136
      $( '#print_content' ).empty();
-
 
137
    });
-
 
138
 
-
 
139
  });
-
 
140
}
-
 
141
 
152
 
142
 
153
// Faire apparaitre un champ text "Autre"
143
// Faire apparaitre un champ text "Autre"
154
function onOtherOption() {
144
function onOtherOption() {
155
 
145
 
156
  const PREFIX = 'collect-other-';
146
  const PREFIX = 'collect-other-';
157
 
147
 
158
  // Ajouter un champ texte pour "Autre"
148
  // Ajouter un champ texte pour "Autre"
159
  function optionAdd( otherId, $target, element ) {
149
  function optionAdd( otherId, $target, element ) {
160
    $target.after(
150
    $target.after(
161
      '<label for="' + otherId + '" class="' + otherId + '">Autre option :</label>' +
151
      '<label for="' + otherId + '" class="' + otherId + '">Autre option :</label>' +
162
      '<input type="text" id="' + otherId + '" name="' + otherId + '" class="collect-other" data-element="' + element + '">'
152
      '<input type="text" id="' + otherId + '" name="' + otherId + '" class="collect-other" data-element="' + element + '">'
163
    );
153
    );
164
  }
154
  }
165
 
155
 
166
  // Supprimer un champ texte pour "Autre"
156
  // Supprimer un champ texte pour "Autre"
167
  function optionRemove( otherId, $this ) {
157
  function optionRemove( otherId, $this ) {
168
    $( '.' + otherId + ', #' + otherId ).remove();
158
    $( '.' + otherId + ', #' + otherId ).remove();
169
  }
159
  }
170
 
160
 
171
  $( '#form-supp .other' ).each( function() {
161
  $( '#form-supp .other' ).each( function() {
172
    if( $( this ).hasClass( 'is-select' ) ) {
162
    if( $( this ).hasClass( 'is-select' ) ) {
173
      var otherId = PREFIX + $( this ).parent( 'select' ).attr( 'name' );
163
      var otherId = PREFIX + $( this ).parent( 'select' ).attr( 'name' );
174
      // Insertion du champ "Autre" après les boutons
164
      // Insertion du champ "Autre" après les boutons
175
      optionAdd( otherId, $( this ).parent( '.select' ) , 'select' );
165
      optionAdd( otherId, $( this ).parent( '.select' ) , 'select' );
176
    } else if ( $( this ).is( ':checked' ) ) {
166
    } else if ( $( this ).is( ':checked' ) ) {
177
      var otherId = PREFIX + $( this ).attr( 'name' ),
167
      var otherId = PREFIX + $( this ).attr( 'name' ),
178
          element = $( this ).attr( 'data-element' );
168
          element = $( this ).attr( 'data-element' );
179
      // Insertion du champ "Autre" après les boutons
169
      // Insertion du champ "Autre" après les boutons
180
      optionAdd( otherId, $( this ).parent( 'label' ) , element );
170
      optionAdd( otherId, $( this ).parent( 'label' ) , element );
181
    }
171
    }
182
  });
172
  });
183
 
173
 
184
  $( '#form-supp select' ).change( function () {
174
  $( '#form-supp select' ).change( function () {
185
    var otherId = PREFIX + $( this ).attr( 'name' );
175
    var otherId = PREFIX + $( this ).attr( 'name' );
186
 
176
 
187
    if( 'other' === $( this ).val() ) {
177
    if( 'other' === $( this ).val() ) {
188
        // Insertion du champ "Autre" après les boutons
178
        // Insertion du champ "Autre" après les boutons
189
        optionAdd( otherId, $( this ).parent( '.select' ), 'select' );
179
        optionAdd( otherId, $( this ).parent( '.select' ), 'select' );
190
      } else {
180
      } else {
191
        // Suppression du champ autre
181
        // Suppression du champ autre
192
        optionRemove( otherId, $( this ) );
182
        optionRemove( otherId, $( this ) );
193
        $( this ).find( '.other' ).val( 'other' );
183
        $( this ).find( '.other' ).val( 'other' );
194
      }
184
      }
195
  });
185
  });
196
 
186
 
197
  $( '#form-supp input[type=radio]' ).change( function () {
187
  $( '#form-supp input[type=radio]' ).change( function () {
198
    var otherId = PREFIX + $( this ).attr( 'name' );
188
    var otherId = PREFIX + $( this ).attr( 'name' );
199
 
189
 
200
    if( 'other' === $( this ).val() ) {
190
    if( 'other' === $( this ).val() ) {
201
        // Insertion du champ "Autre" après les boutons
191
        // Insertion du champ "Autre" après les boutons
202
        optionAdd( otherId, $( this ).parent( 'label' ), 'radio' );
192
        optionAdd( otherId, $( this ).parent( 'label' ), 'radio' );
203
    } else {
193
    } else {
204
      // Suppression du champ autre
194
      // Suppression du champ autre
205
      optionRemove( otherId, $( this ) );
195
      optionRemove( otherId, $( this ) );
206
      $( this ).closest( 'div.control-group.radio' ).find( '.other' ).val( 'other' );
196
      $( this ).closest( 'div.control-group.radio' ).find( '.other' ).val( 'other' );
207
    }
197
    }
208
  });
198
  });
209
 
199
 
210
  $( '#form-supp .list-checkbox .other, #form-supp .checkbox .other' ).click( function () {
200
  $( '#form-supp .list-checkbox .other, #form-supp .checkbox .other' ).click( function () {
211
    var otherId = PREFIX + $( this ).attr( 'name' ),
201
    var otherId = PREFIX + $( this ).attr( 'name' ),
212
        element = $( this ).attr( 'data-element' );
202
        element = $( this ).attr( 'data-element' );
213
    // console.log(element);
203
    // console.log(element);
214
    if( $( this ).is( ':checked' ) ) {
204
    if( $( this ).is( ':checked' ) ) {
215
        // Insertion du champ "Autre" après les boutons
205
        // Insertion du champ "Autre" après les boutons
216
        optionAdd( otherId, $( this ).parent( 'label' ), element );
206
        optionAdd( otherId, $( this ).parent( 'label' ), element );
217
      } else {
207
      } else {
218
        // Suppression du champ autre
208
        // Suppression du champ autre
219
        optionRemove( otherId, $( this ) );
209
        optionRemove( otherId, $( this ) );
220
        $( this ).val( 'other' );
210
        $( this ).val( 'other' );
221
      }
211
      }
222
  });
212
  });
223
}
213
}
224
 
214
 
225
function collectOtherOption() {
215
function collectOtherOption() {
226
  $( '#form-supp' ).on( 'change', '.collect-other', function () {
216
  $( '#form-supp' ).on( 'change', '.collect-other', function () {
227
    var otherIdSuffix = $( this ).attr( 'name' ).replace( 'collect-other-', '' ),
217
    var otherIdSuffix = $( this ).attr( 'name' ).replace( 'collect-other-', '' ),
228
        element = $( this ).attr( 'data-element' );
218
        element = $( this ).attr( 'data-element' );
229
    if ( '' === $( this ).val() ){
219
    if ( '' === $( this ).val() ){
230
      if ( 'select' === element ) {
220
      if ( 'select' === element ) {
231
        $( '#' + otherIdSuffix ).find( '.other' ).prop( 'selected', false );
221
        $( '#' + otherIdSuffix ).find( '.other' ).prop( 'selected', false );
232
      } else {
222
      } else {
233
        $( '#other-' + otherIdSuffix ).prop( 'checked', false );
223
        $( '#other-' + otherIdSuffix ).prop( 'checked', false );
234
      }
224
      }
235
    } else {
225
    } else {
236
      if ( 'select' === element ) {
226
      if ( 'select' === element ) {
237
        $( '#' +  otherIdSuffix ).find( '.other' ).val( $( this ).val() );
227
        $( '#' +  otherIdSuffix ).find( '.other' ).val( $( this ).val() );
238
        $( '#' +  otherIdSuffix + ' option').not( '.other' ).prop( 'selected', false );
228
        $( '#' +  otherIdSuffix + ' option').not( '.other' ).prop( 'selected', false );
239
        $( '#' +  otherIdSuffix ).find( '.other' ).prop( 'selected', true );
229
        $( '#' +  otherIdSuffix ).find( '.other' ).prop( 'selected', true );
240
      } else {
230
      } else {
241
        if ( 'radio' === element ) {
231
        if ( 'radio' === element ) {
242
          $( 'input[name=' + otherIdSuffix + ']' ).not( '#other-' + otherIdSuffix ).prop( 'checked', false );
232
          $( 'input[name=' + otherIdSuffix + ']' ).not( '#other-' + otherIdSuffix ).prop( 'checked', false );
243
        }
233
        }
244
        // console.log( otherIdSuffix );
234
        // console.log( otherIdSuffix );
245
        $( '#other-' + otherIdSuffix ).val( $( this ).val() );
235
        $( '#other-' + otherIdSuffix ).val( $( this ).val() );
246
        $( '#other-' + otherIdSuffix ).prop( 'checked', true );
236
        $( '#other-' + otherIdSuffix ).prop( 'checked', true );
247
      }
237
      }
248
 
238
 
249
    }
239
    }
250
  });
240
  });
251
}
241
}
252
 
242
 
253
/***************************
243
/***************************
254
 *  Lancement des scripts  *
244
 *  Lancement des scripts  *
255
 ***************************/
245
 ***************************/
-
 
246
const CHEMIN_FICHIERS = $( '#zone-appli' ).data('url-fichiers');
-
 
247
 
256
jQuery( document ).ready( function() {
248
jQuery( document ).ready( function() {
-
 
249
 
-
 
250
  // Volet de profil/déconnexion
-
 
251
  connexionDprodownMenu();
-
 
252
 
-
 
253
  // Modale "aide" du projet
-
 
254
  projetHelpModale();
257
  // Affichage des images ou nom des documents importés
255
  // Affichage input file
258
  inputFile();
256
  inputFile();
259
  // Affichage des List-checkbox
257
  // Affichage des List-checkbox
260
  inputListCheckbox();
258
  inputListCheckbox();
261
 
259
 
262
  // // Affichage des Range
260
  // Affichage des Range
263
  // inputRangeDisplayNumber()
261
  inputRangeDisplayNumber()
264
 
262
 
-
 
263
  // Modale "aide"
265
  // Modale "aide"
264
  newFieldsHelpModal();
266
  previewFieldHelpModal();
265
 
-
 
266
  // Ajout/suppression d'un champ texte "Autre"
267
  // Ajout/suppression d'un champ texte "Autre"
267
  onOtherOption();
268
  onOtherOption();
268
  // Récupérer les données entrées dans "Autre"
269
  collectOtherOption();
269
  collectOtherOption();
270
});
270
});