Sweet Books

jeudi 11 mai 2017
09:45-10:15

Lecture à voix haute d’albums en langue anglaise, pour goûter dès le plus jeune âge au goût sucré d’une autre sonorité.

sweetbooks

Sur inscription

Réservation

Cet événement est complet. Revenez ultérieurement vérifier si des places se sont libérées.

'); }, success : function(response, statusText, xhr, $form) { $('#em-loading').remove(); $('.em-booking-message').remove(); //show error or success message if(response.result){ $('
'+response.message+'
').insertBefore(em_booking_form); em_booking_form.hide(); $('.em-booking-login').hide(); $(document).trigger('em_booking_success', [response]); if( response.redirect ){ //custom redirect hook window.location.href = response.redirect; } }else{ if( response.errors != null ){ if( $.isArray(response.errors) && response.errors.length > 0 ){ var error_msg; response.errors.each(function(i, el){ error_msg = error_msg + el; }); $('
'+error_msg.errors+'
').insertBefore(em_booking_form); }else{ $('
'+response.errors+'
').insertBefore(em_booking_form); } }else{ $('
'+response.message+'
').insertBefore(em_booking_form); } $(document).trigger('em_booking_error', [response]); } $('html, body').animate({ scrollTop: $('.em-booking-message').offset().top - EM.booking_offset }); //sends user back to top of form em_booking_doing_ajax = false; //run extra actions after showing the message here if( response.gateway != null ){ $(document).trigger('em_booking_gateway_add_'+response.gateway, [response]); } if( !response.result && typeof Recaptcha != 'undefined' && typeof RecaptchaState != 'undefined'){ Recaptcha.reload(); }else if( !response.result && typeof grecaptcha != 'undefined' ){ grecaptcha.reset(); } $(document).trigger('em_booking_complete', [response]); }, error : function(jqXHR, textStatus, errorThrown){ $(document).trigger('em_booking_ajax_error', [jqXHR, textStatus, errorThrown]); }, complete : function(jqXHR, textStatus){ em_booking_doing_ajax = false; $('#em-loading').remove(); $(document).trigger('em_booking_ajax_complete', [jqXHR, textStatus]); } }); return false; });//Select Submission $(document).on('change', '.em-booking-gateway select[name=gateway]', function(e){ var gateway = $(this).find('option:selected').val(); $('div.em-booking-gateway-form').hide(); $('div#em-booking-gateway-'+gateway).show(); }); //Button Submission $(document).on('click', 'input.em-gateway-button', function(e){ //prevents submission in order to append a hidden field and bind to the booking form submission event e.preventDefault(); //get gateway name var gateway = $(this).attr('id').replace('em-gateway-button-',''); var parent = $(this).parents('.em-booking-form').first(); parent.find('input[name=gateway]').remove(); parent.append(''); parent.trigger('submit'); return false; }); });