1(function($){ 2 'use strict'; 3 $('body').on('click', '.bookory-login-form-ajax button[type="submit"]', (event) => { 4 var $this = $(event.currentTarget); 5 var $form = $this.closest('form'); 6 $.ajax({ 7 type: 'POST', 8 url: bookoryAjax.ajaxurl, 9 data: $form.serialize(), 10 beforeSend: () => { 11 $form.addClass('loading'); 12 $form.find('input,button').prop('disabled', true); 13 }, 14 success: (response) => { 15 if (response.status) { 16 $form.find('.result-error').remove(); 17 location.reload(); 18 } else { 19 if($form.find('.result-error').length <= 0){ 20 $form.prepend(`<div class="result-error woocommerce-message woocommerce-error">${response.msg}</div>`); 21 } 22 } 23 }, 24 complete: function () { 25 $form.find('input,button').prop('disabled', false); 26 $form.removeClass('loading'); 27 } 28 }); 29 30 return false; 31 }); 32})(jQuery); 33
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.