1jQuery(document).ready(function() { 2 // Binden Sie das AJAX-Registrierungsereignis an die Schaltfläche "Registrieren" 3 jQuery('.woocommerce-form-register').on('submit', function(e) { 4 e.preventDefault(); 5 6 var form = jQuery(this); 7 var submitButton = form.find('.woocommerce-form-register__submit'); 8 var notificationDiv = jQuery('#rpp-woo-registration-notification'); 9 var successDiv = jQuery('#rpp-woo-registration-success'); 10 11 // Button deaktivieren und Daten aus Formular sammeln 12 submitButton.prop('disabled', true); 13 var registration_data = form.serialize(); 14 15 // AJAX-Anfrage zum Registrieren des Benutzers 16 jQuery.ajax({ 17 type: 'POST', 18 dataType: 'json', 19 url: ajaxurl, 20 data: { 21 'action': 'rpp_woo_ajax_registration', 22 'registration_data': registration_data 23 }, 24 success: function(response) { 25 if (response.error) { 26 notificationDiv.html(response.message).addClass('rpp-notification-show'); 27 submitButton.prop('disabled', false); // Button wieder aktivieren 28 } else { 29 notificationDiv.removeClass('rpp-notification-show').hide(); 30 submitButton.hide(); 31 successDiv.addClass('rpp-notification-show').show(); 32 } 33 }, 34 error: function() { 35 notificationDiv.html('Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.').addClass('rpp-notification-show'); 36 submitButton.prop('disabled', false); // Button wieder aktivieren 37 } 38 }); 39 }); 40});
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.