1jQuery(function($) { 2 $('#ngg_test_gateway_button').on('click', function(e) { 3 e.preventDefault(); 4 5 var $button = $(this); 6 if ($button.attr('disabled')) 7 return; 8 9 $button.attr('disabled', 'disabled'); 10 11 // Change the text of the button to indicate that we're processing 12 $button.text($button.attr('data-processing-msg')); 13 14 var post_data = $('#ngg_pro_checkout').serialize(); 15 post_data += "&action=test_gateway_checkout"; 16 $.post(photocrati_ajax.url, post_data, function(response) { 17 if (typeof(response) != 'object') { 18 response = JSON.parse(response); 19 } 20 if (typeof(response.error) != 'undefined') { 21 $button.removeAttr('disabled'); 22 $button.text($button.attr('data-submit-msg')); 23 alert(response.error); 24 } else { 25 window.location = response.redirect; 26 } 27 }); 28 }); 29});
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.