1jQuery(function($) { 2 3 // permet de sélectionner si on envoie par mail ou par poste et du coup d'afficher et gérer les champs associés 4 5 if( $('[data-form-gift="send-type"]').length > 0 ) { 6 var sectionEmail = $('[data-form-gift="email"]'), 7 sectionPostal = $('[data-form-gift="postal"]'); 8 9 sectionEmail.show(); 10 sectionPostal.hide(); 11 12 $('[data-form-gift="send-type"] select').change(function() { 13 if ($(this)[0].selectedIndex == 0) { 14 sectionEmail.show(); 15 $('input', sectionEmail).prop('required', true); 16 sectionPostal.hide(); 17 $('input', sectionPostal).removeProp('required'); 18 } else { 19 sectionEmail.hide(); 20 $('input', sectionEmail).removeProp('required'); 21 sectionPostal.show(); 22 $('input', sectionPostal).prop('required', true); 23 } 24 }); 25 } 26 27});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.