Subversion Repositories eFlore/Applications.cel

Rev

Rev 3260 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3260 Rev 3288
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
 
7
 
8
// Volet de profil/déconnexion
8
// Volet de profil/déconnexion
9
function connexionDprodownMenu() {
9
function connexionDprodownMenu() {
10
  $( '#utilisateur-connecte .volet-toggle, #profil-utilisateur a, #deconnexion a' ).click( function( event ) {
10
  $( '#utilisateur-connecte .volet-toggle, #profil-utilisateur a, #deconnexion a' ).click( function( event ) {
-
 
11
    if( $( this ).hasClass( 'volet-toggle' ) ) {
11
    event.preventDefault();
12
      event.preventDefault();
-
 
13
    }
12
    $( '#utilisateur-connecte .volet-menu' ).toggleClass( 'hidden' );
14
    $( '#utilisateur-connecte .volet-menu' ).toggleClass( 'hidden' );
13
  });
15
  });
14
}
16
}
15
 
17
 
16
// Logique d'affichage pour le input type=file
18
// Logique d'affichage pour le input type=file
17
function inputFile() {
19
function inputFile() {
18
  // Initialisation des variables
20
  // Initialisation des variables
19
  var $fileInput  = $( '.input-file' ),
21
  var $fileInput  = $( '.input-file' ),
20
      $button     = $( '.label-file' );
22
      $button     = $( '.label-file' );
21
  // Action lorsque la "barre d'espace" ou "Entrée" est pressée
23
  // Action lorsque la "barre d'espace" ou "Entrée" est pressée
22
  $( '.label-file' ).keydown( function( event ) {
24
  $( '.label-file' ).keydown( function( event ) {
23
    if ( event.keyCode == 13 || event.keyCode == 32 ) {
25
    if ( event.keyCode == 13 || event.keyCode == 32 ) {
24
      $( '#' + $( this ).attr( 'for' ) + '.input-file' ).click();
26
      $( '#' + $( this ).attr( 'for' ) + '.input-file' ).click();
25
    }
27
    }
26
  });
28
  });
27
}
29
}
28
 
30
 
29
// Style et affichage des list-checkboxes
31
// Style et affichage des list-checkboxes
30
function inputListCheckbox() {
32
function inputListCheckbox() {
31
  // On écoute le click sur une list-checkbox ('.selectBox')
33
  // On écoute le click sur une list-checkbox ('.selectBox')
32
  // à tout moment de son insertion dans le dom
34
  // à tout moment de son insertion dans le dom
33
  // _ S'assurer de bien viser la bonne list-checkbox
35
  // _ S'assurer de bien viser la bonne list-checkbox
34
  // _ Au click sur un autre champ remballer la list-checkbox
36
  // _ Au click sur un autre champ remballer la list-checkbox
35
  $( document ).click( function( event ) {
37
  $( document ).click( function( event ) {
36
    var target = event.target;
38
    var target = event.target;
37
 
39
 
38
    if ( !$( target ).is( '.overSelect' ) && 0 === $( target ).closest( '.checkboxes' ).length ) {
40
    if ( !$( target ).is( '.overSelect' ) && 0 === $( target ).closest( '.checkboxes' ).length ) {
39
      $( '.checkboxes' ).each( function () {
41
      $( '.checkboxes' ).each( function () {
40
        $( this ).addClass( 'hidden' );
42
        $( this ).addClass( 'hidden' );
41
      });
43
      });
42
      $( '.selectBox select.focus' ).each( function() {
44
      $( '.selectBox select.focus' ).each( function() {
43
        $( this ).removeClass( 'focus' );
45
        $( this ).removeClass( 'focus' );
44
      });
46
      });
45
    }
47
    }
46
  });
48
  });
47
  $( '#zone-appli' ).on( 'click' , '.selectBox' , function() {
49
  $( '#zone-appli' ).on( 'click' , '.selectBox' , function() {
48
    // afficher/cacher le volet des checkboxes et focus
50
    // afficher/cacher le volet des checkboxes et focus
49
    $( this ).next().toggleClass( 'hidden' );
51
    $( this ).next().toggleClass( 'hidden' );
50
    $( this ).find( 'select' ).toggleClass( 'focus' );
52
    $( this ).find( 'select' ).toggleClass( 'focus' );
51
 
53
 
52
    // Cacher le volet des autres checkboxes et retirer leur focus
54
    // Cacher le volet des autres checkboxes et retirer leur focus
53
    var $checkboxes = $( this ).next(),
55
    var $checkboxes = $( this ).next(),
54
        count = $( '.checkboxes' ).length;
56
        count = $( '.checkboxes' ).length;
55
 
57
 
56
    for ( var i = 0; i < count; i++ ) {
58
    for ( var i = 0; i < count; i++ ) {
57
      if ( $( '.checkboxes' )[i] !== $checkboxes[0] && !$checkboxes.hasClass( 'hidden' ) ) {
59
      if ( $( '.checkboxes' )[i] !== $checkboxes[0] && !$checkboxes.hasClass( 'hidden' ) ) {
58
        var $otherListCheckboxes = $( '.checkboxes' )[i];
60
        var $otherListCheckboxes = $( '.checkboxes' )[i];
59
        if ( !$otherListCheckboxes.classList.contains( 'hidden' ) ) {
61
        if ( !$otherListCheckboxes.classList.contains( 'hidden' ) ) {
60
          $otherListCheckboxes.classList.add( 'hidden' );
62
          $otherListCheckboxes.classList.add( 'hidden' );
61
        }
63
        }
62
        if( $otherListCheckboxes.previousElementSibling.firstElementChild.classList.contains( 'focus' ) ) {
64
        if( $otherListCheckboxes.previousElementSibling.firstElementChild.classList.contains( 'focus' ) ) {
63
          $otherListCheckboxes.previousElementSibling.firstElementChild.classList.remove( 'focus' );
65
          $otherListCheckboxes.previousElementSibling.firstElementChild.classList.remove( 'focus' );
64
        }
66
        }
65
      }
67
      }
66
    }
68
    }
67
  });
69
  });
68
}
70
}
69
 
71
 
70
// Style et affichage des input type="range"
72
// Style et affichage des input type="range"
71
function inputRangeDisplayNumber() {
73
function inputRangeDisplayNumber() {
72
  $( 'input[type="range"]' ).each( function() {
74
  $( 'input[type="range"]' ).each( function() {
73
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
75
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
74
  });
76
  });
75
  $( '#zone-supp' ).on( 'input' , 'input[type="range"]' , function () {
77
  $( '#zone-supp' ).on( 'input' , 'input[type="range"]' , function () {
76
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
78
    $( this ).siblings( '.range-live-value' ).text( $( this ).val() );
77
  });
79
  });
78
  $( '#ajouter-obs' ).on( 'click', function() {
80
  $( '#ajouter-obs' ).on( 'click', function() {
79
    $( '.range-live-value' ).each( function() {
81
    $( '.range-live-value' ).each( function() {
80
      var $this = $( this );
82
      var $this = $( this );
81
      $this.text( '' );
83
      $this.text( '' );
82
    });
84
    });
83
  });
85
  });
84
}
86
}
85
 
87
 
86
// Activation/Desactivation et contenu de la modale Bootstrap
88
// Activation/Desactivation et contenu de la modale Bootstrap
87
// https://getbootstrap.com/docs/3.3/javascript/#modals
89
// https://getbootstrap.com/docs/3.3/javascript/#modals
88
function newFieldsHelpModal() {
90
function newFieldsHelpModal() {
89
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
91
  $( '#zone-appli' ).on( 'click' , '.help-button' , function ( event ) {
90
    var thisFieldKey = $( this ).data( 'key' ),
92
    var thisFieldKey = $( this ).data( 'key' ),
91
        fileMimeType = $( this ).data( 'mime-type' );
93
        fileMimeType = $( this ).data( 'mime-type' );
92
 
94
 
93
    // Titre
95
    // Titre
94
    $( '#help-modal-label' ).text( 'Aide pour : ' +  $( this ).data( 'name' ) );
96
    $( '#help-modal-label' ).text( 'Aide pour : ' +  $( this ).data( 'name' ) );
95
    if( fileMimeType.match( 'image' ) ) {
97
    if( fileMimeType.match( 'image' ) ) {
96
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
98
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
97
      // var extention = 'jpg';
99
      // var extention = 'jpg';
98
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + thisFieldKey + '.' + extention + '" style="max-width:100%" alt="' + thisFieldKey + '" />' );
100
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + thisFieldKey + '.' + extention + '" style="max-width:100%" alt="' + thisFieldKey + '" />' );
99
    }
101
    }
100
    // Sortie avec la touche escape
102
    // Sortie avec la touche escape
101
    $( '#help-modal' ).modal( { keyboard : true } );
103
    $( '#help-modal' ).modal( { keyboard : true } );
102
    // Affichage
104
    // Affichage
103
    $( '#help-modal' ).modal({ show: true });
105
    $( '#help-modal' ).modal({ show: true });
104
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
106
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
105
    // Message dans la doc de bootstrap :
107
    // Message dans la doc de bootstrap :
106
    // Due to how HTML5 defines its semantics,
108
    // Due to how HTML5 defines its semantics,
107
    // the autofocus HTML attribute has no effect in Bootstrap modals.
109
    // the autofocus HTML attribute has no effect in Bootstrap modals.
108
    // To achieve the same effect, use some custom JavaScript
110
    // To achieve the same effect, use some custom JavaScript
109
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
111
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
110
      $( '#myInput' ).trigger( 'focus' );
112
      $( '#myInput' ).trigger( 'focus' );
111
    })
113
    })
112
    // Réinitialisation
114
    // Réinitialisation
113
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
115
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
114
      $( '#help-modal-label' ).text();
116
      $( '#help-modal-label' ).text();
115
      $( '#print_content' ).empty();
117
      $( '#print_content' ).empty();
116
    })
118
    })
117
  });
119
  });
118
}
120
}
119
 
121
 
120
// Activation/Desactivation et contenu de la modale Bootstrap
122
// Activation/Desactivation et contenu de la modale Bootstrap
121
// https://getbootstrap.com/docs/3.3/javascript/#modals
123
// https://getbootstrap.com/docs/3.3/javascript/#modals
122
function projetHelpModale() {
124
function projetHelpModale() {
123
  $( '#info-button' ).click( function ( event ) {
125
  $( '#info-button' ).click( function ( event ) {
124
    var fileMimeType = $( this ).data( 'mime-info' );
126
    var fileMimeType = $( this ).data( 'mime-info' );
125
 
127
 
126
    // Titre
128
    // Titre
127
    $( '#help-modal-label' ).text( 'Aide du projet : ' +  $( '#titre-projet' ).text() );
129
    $( '#help-modal-label' ).text( 'Aide du projet : ' +  $( '#titre-projet' ).text() );
128
    if( fileMimeType.match( 'image' ) ) {
130
    if( fileMimeType.match( 'image' ) ) {
129
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
131
      var extention = fileMimeType.replace( /(?:imag)?e\/?/g , '' );
130
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + 'info.' + extention + '" style="max-width:100%" alt="info projet" />' );
132
      $( '#print_content' ).append( '<img src="' + CHEMIN_FICHIERS + 'info.' + extention + '" style="max-width:100%" alt="info projet" />' );
131
    }
133
    }
132
    // Sortie avec la touche escape
134
    // Sortie avec la touche escape
133
    $( '#help-modal' ).modal( { keyboard : true } );
135
    $( '#help-modal' ).modal( { keyboard : true } );
134
    // Affichage
136
    // Affichage
135
    $( '#help-modal' ).modal({ show: true });
137
    $( '#help-modal' ).modal({ show: true });
136
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
138
    // Remplacer l'autofocus qui ne fonctionne plus en HTML5
137
    // Message dans la doc de bootstrap :
139
    // Message dans la doc de bootstrap :
138
    // Due to how HTML5 defines its semantics,
140
    // Due to how HTML5 defines its semantics,
139
    // the autofocus HTML attribute has no effect in Bootstrap modals.
141
    // the autofocus HTML attribute has no effect in Bootstrap modals.
140
    // To achieve the same effect, use some custom JavaScript
142
    // To achieve the same effect, use some custom JavaScript
141
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
143
    $( '#help-modal' ).on( 'shown.bs.modal' , function () {
142
      $( '#myInput' ).trigger( 'focus' );
144
      $( '#myInput' ).trigger( 'focus' );
143
    })
145
    })
144
    // Réinitialisation
146
    // Réinitialisation
145
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
147
    $( '#help-modal' ).on( 'hidden.bs.modal' , function () {
146
      $( '#help-modal-label' ).text();
148
      $( '#help-modal-label' ).text();
147
      $( '#print_content' ).empty();
149
      $( '#print_content' ).empty();
148
    });
150
    });
149
 
151
 
150
  });
152
  });
151
}
153
}
152
 
154
 
153
 
155
 
154
// Faire apparaitre un champ text "Autre"
156
// Faire apparaitre un champ text "Autre"
155
function onOtherOption() {
157
function onOtherOption() {
156
  const PREFIX = 'collect-other-';
158
  const PREFIX = 'collect-other-';
157
 
159
 
158
  // Ajouter un champ texte pour "Autre"
160
  // Ajouter un champ texte pour "Autre"
159
  function optionAdd( otherId, $target, element, dataName ) {
161
  function optionAdd( otherId, $target, element, dataName ) {
160
    $target.after(
162
    $target.after(
161
      '<div class="control-group">'+
163
      '<div class="control-group">'+
162
        '<label'+
164
        '<label'+
163
          ' for="' + otherId + '"'+
165
          ' for="' + otherId + '"'+
164
          ' class="' + otherId + '"'+
166
          ' class="' + otherId + '"'+
165
        '>'+
167
        '>'+
166
          'Autre option :'+
168
          'Autre option :'+
167
        '</label>'+
169
        '</label>'+
168
        '<input'+
170
        '<input'+
169
          ' type="text"'+
171
          ' type="text"'+
170
          ' id="' + otherId + '"'+
172
          ' id="' + otherId + '"'+
171
          ' name="' + otherId + '"'+
173
          ' name="' + otherId + '"'+
172
          ' class="collect-other form-control"'+
174
          ' class="collect-other form-control"'+
173
          ' data-name="' + dataName + '"'+
175
          ' data-name="' + dataName + '"'+
174
          ' data-element="' + element + '"'+
176
          ' data-element="' + element + '"'+
175
        '>'+
177
        '>'+
176
      '</div>'
178
      '</div>'
177
    );
179
    );
178
    $( '#' + otherId ).focus();
180
    $( '#' + otherId ).focus();
179
  }
181
  }
180
 
182
 
181
  // Supprimer un champ texte pour "Autre"
183
  // Supprimer un champ texte pour "Autre"
182
  function optionRemove( otherId ) {
184
  function optionRemove( otherId ) {
183
    $( '.' + otherId + ', #' + otherId ).remove();
185
    $( '.' + otherId + ', #' + otherId ).remove();
184
  }
186
  }
185
 
187
 
186
  $( '#form-supp .other' ).each( function() {
188
  $( '#form-supp .other' ).each( function() {
187
    if( $( this ).hasClass( 'is-select' ) ) {
189
    if( $( this ).hasClass( 'is-select' ) ) {
188
      var dataName = $( this ).data( 'name' ),
190
      var dataName = $( this ).data( 'name' ),
189
          otherId  = PREFIX + dataName;
191
          otherId  = PREFIX + dataName;
190
 
192
 
191
      // Insertion du champ "Autre" après les boutons
193
      // Insertion du champ "Autre" après les boutons
192
      optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName );
194
      optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName );
193
    } else if ( $( this ).is( ':checked' ) ) {
195
    } else if ( $( this ).is( ':checked' ) ) {
194
      var dataName = $( this ).data( 'name' ),
196
      var dataName = $( this ).data( 'name' ),
195
          otherId  = PREFIX + dataName,
197
          otherId  = PREFIX + dataName,
196
          element = $( this ).data( 'element' );
198
          element = $( this ).data( 'element' );
197
      // Insertion du champ "Autre" après les boutons
199
      // Insertion du champ "Autre" après les boutons
198
      optionAdd( otherId, $( this ).parent( 'label' ), element, dataName );
200
      optionAdd( otherId, $( this ).parent( 'label' ), element, dataName );
199
    }
201
    }
200
  });
202
  });
201
 
203
 
202
  $( '#form-supp .select' ).change( function () {
204
  $( '#form-supp .select' ).change( function () {
203
    var dataName = $( this ).data( 'name' ),
205
    var dataName = $( this ).data( 'name' ),
204
        otherId  = PREFIX + dataName;
206
        otherId  = PREFIX + dataName;
205
 
207
 
206
    if( 'other' === $( this ).val() ) {
208
    if( 'other' === $( this ).val() ) {
207
        // Insertion du champ "Autre" après les boutons
209
        // Insertion du champ "Autre" après les boutons
208
        optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName );
210
        optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName );
209
      } else {
211
      } else {
210
        // Suppression du champ autre
212
        // Suppression du champ autre
211
        optionRemove( otherId );
213
        optionRemove( otherId );
212
        $( this ).find( '.other' ).val( 'other' );
214
        $( this ).find( '.other' ).val( 'other' );
213
      }
215
      }
214
  });
216
  });
215
 
217
 
216
  $( '#form-supp input[type=radio]' ).change( function () {
218
  $( '#form-supp input[type=radio]' ).change( function () {
217
    var dataName = $( this ).data( 'name' ),
219
    var dataName = $( this ).data( 'name' ),
218
        otherId  = PREFIX + dataName;
220
        otherId  = PREFIX + dataName;
219
 
221
 
220
    if( 'other' === $( this ).val() ) {
222
    if( 'other' === $( this ).val() ) {
221
      // Insertion du champ "Autre" après les boutons
223
      // Insertion du champ "Autre" après les boutons
222
      optionAdd( otherId, $( this ).parent( 'label' ), 'radio', dataName );
224
      optionAdd( otherId, $( this ).parent( 'label' ), 'radio', dataName );
223
    } else {
225
    } else {
224
      // Suppression du champ autre
226
      // Suppression du champ autre
225
      optionRemove( otherId );
227
      optionRemove( otherId );
226
      $( this ).closest( '.radio' ).find( '.other' ).val( 'other' );
228
      $( this ).closest( '.radio' ).find( '.other' ).val( 'other' );
227
    }
229
    }
228
  });
230
  });
229
 
231
 
230
  $( '#form-supp .list-checkbox .other, #form-supp .checkbox .other' ).click( function () {
232
  $( '#form-supp .list-checkbox .other, #form-supp .checkbox .other' ).click( function () {
231
    var dataName = $( this ).data( 'name' ),
233
    var dataName = $( this ).data( 'name' ),
232
        otherId  = PREFIX + dataName,
234
        otherId  = PREFIX + dataName,
233
        element = $( this ).data( 'element' );
235
        element = $( this ).data( 'element' );
234
 
236
 
235
    if( $( this ).is( ':checked' ) ) {
237
    if( $( this ).is( ':checked' ) ) {
236
        // Insertion du champ "Autre" après les boutons
238
        // Insertion du champ "Autre" après les boutons
237
        optionAdd( otherId, $( this ).parent( 'label' ), element, dataName );
239
        optionAdd( otherId, $( this ).parent( 'label' ), element, dataName );
238
      } else {
240
      } else {
239
        // Suppression du champ autre
241
        // Suppression du champ autre
240
        optionRemove( otherId );
242
        optionRemove( otherId );
241
        $( this ).val( 'other' );
243
        $( this ).val( 'other' );
242
      }
244
      }
243
  });
245
  });
244
}
246
}
245
 
247
 
246
function collectOtherOption() {
248
function collectOtherOption() {
247
  $( '#form-supp' ).on( 'change', '.collect-other', function () {
249
  $( '#form-supp' ).on( 'change', '.collect-other', function () {
248
    var otherIdSuffix = $( this ).data( 'name' ).replace( '[]', '' );
250
    var otherIdSuffix = $( this ).data( 'name' ).replace( '[]', '' );
249
    var element = $( this ).data( 'element' );
251
    var element = $( this ).data( 'element' );
250
 
252
 
251
    if ( '' === $( this ).val() ){
253
    if ( '' === $( this ).val() ){
252
      if ( 'select' === element ) {
254
      if ( 'select' === element ) {
253
        $( '#' + otherIdSuffix ).find( '.other' ).prop( 'selected', false ).val( 'other' );
255
        $( '#' + otherIdSuffix ).find( '.other' ).prop( 'selected', false ).val( 'other' );
254
      } else {
256
      } else {
255
        $( '#other-' + otherIdSuffix ).prop( 'checked', false ).val( 'other' );
257
        $( '#other-' + otherIdSuffix ).prop( 'checked', false ).val( 'other' );
256
      }
258
      }
257
      $( 'label.collect-other-' + otherIdSuffix ).remove();
259
      $( 'label.collect-other-' + otherIdSuffix ).remove();
258
      $( this ).remove();
260
      $( this ).remove();
259
    } else {
261
    } else {
260
      if ( 'select' === element ) {
262
      if ( 'select' === element ) {
261
        $( '#' +  otherIdSuffix ).find( '.other' ).val( $( this ).val() );
263
        $( '#' +  otherIdSuffix ).find( '.other' ).val( $( this ).val() );
262
        $( '#' +  otherIdSuffix ).val( $( this ).val() );
264
        $( '#' +  otherIdSuffix ).val( $( this ).val() );
263
        $( '#' +  otherIdSuffix + ' option').not( '.other' ).prop( 'selected', false );
265
        $( '#' +  otherIdSuffix + ' option').not( '.other' ).prop( 'selected', false );
264
        $( '#' +  otherIdSuffix ).find( '.other' ).prop( 'selected', true );
266
        $( '#' +  otherIdSuffix ).find( '.other' ).prop( 'selected', true );
265
      } else {
267
      } else {
266
        if ( 'radio' === element ) {
268
        if ( 'radio' === element ) {
267
          $( 'input[name=' + otherIdSuffix + ']' ).not( '#other-' + otherIdSuffix ).prop( 'checked', false );
269
          $( 'input[name=' + otherIdSuffix + ']' ).not( '#other-' + otherIdSuffix ).prop( 'checked', false );
268
        }
270
        }
269
        $( '#other-' + otherIdSuffix ).val( $( this ).val() );
271
        $( '#other-' + otherIdSuffix ).val( $( this ).val() );
270
        $( '#other-' + otherIdSuffix ).prop( 'checked', true );
272
        $( '#other-' + otherIdSuffix ).prop( 'checked', true );
271
      }
273
      }
272
    }
274
    }
273
  });
275
  });
274
}
276
}
275
 
277
 
276
/***************************
278
/***************************
277
 *  Lancement des scripts  *
279
 *  Lancement des scripts  *
278
 ***************************/
280
 ***************************/
279
const CHEMIN_FICHIERS = $( '#zone-appli' ).data('url-fichiers');
281
const CHEMIN_FICHIERS = $( '#zone-appli' ).data('url-fichiers');
280
 
282
 
281
jQuery( document ).ready( function() {
283
jQuery( document ).ready( function() {
282
  // Volet de profil/déconnexion
284
  // Volet de profil/déconnexion
283
  connexionDprodownMenu();
285
  connexionDprodownMenu();
284
  // Modale "aide" du projet
286
  // Modale "aide" du projet
285
  projetHelpModale();
287
  projetHelpModale();
286
  // Affichage input file
288
  // Affichage input file
287
  inputFile();
289
  inputFile();
288
  // Affichage des List-checkbox
290
  // Affichage des List-checkbox
289
  inputListCheckbox();
291
  inputListCheckbox();
290
  // Affichage des Range
292
  // Affichage des Range
291
  inputRangeDisplayNumber()
293
  inputRangeDisplayNumber()
292
  // Modale "aide"
294
  // Modale "aide"
293
  newFieldsHelpModal();
295
  newFieldsHelpModal();
294
  // Ajout/suppression d'un champ texte "Autre"
296
  // Ajout/suppression d'un champ texte "Autre"
295
  onOtherOption();
297
  onOtherOption();
296
  // Récupérer les données entrées dans "Autre"
298
  // Récupérer les données entrées dans "Autre"
297
  collectOtherOption();
299
  collectOtherOption();
298
});
300
});