1jQuery(document).ready(function () 2{ 3 jQuery(".affegg-price-alert-wrap form").on("submit", function (event) 4 { 5 event.preventDefault(); 6 var $form = jQuery(this); 7 var $wrap = $form.closest('.affegg-price-alert-wrap'); 8 var data = $form.serialize() + '&nonce=' + affeggPriceAlert.nonce; 9 $wrap.find('.affegg-price-loading-image').show(); 10 $wrap.find('.affegg-price-alert-result-error').hide(); 11 $form.find('input, button').prop("disabled", true); 12 jQuery.ajax({ 13 url: affeggPriceAlert.ajaxurl + '?action=affegg_start_tracking', 14 type: 'post', 15 dataType: 'json', 16 data: data, 17 success: function (result) { 18 if (result.status == 'success') 19 { 20 $wrap.find('.affegg-price-alert-result-succcess').show(); 21 $wrap.find('.affegg-price-alert-result-succcess').html(result.message); 22 $wrap.find('.affegg-price-loading-image').hide(); 23 } else { 24 $form.find('input, button').prop("disabled", false); 25 $wrap.find('.affegg-price-alert-result-error').show(); 26 $wrap.find('.affegg-price-alert-result-error').html(result.message); 27 $wrap.find('.affegg-price-loading-image').hide(); 28 } 29 } 30 }); 31 32 }); 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.