Subversion Repositories eFlore/Applications.cel

Rev

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

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