1jQuery(document).ready(function(){ 2 3 // Sign-Up/Opinion Form Submit Actions 4 if(jQuery('#submit_press_clips').length){ 5 jQuery('#submit_press_clips .submit').prop('disabled', false); // Remove in case of refresh 6 jQuery("#submit_press_clips").validate({ 7 rules: { 8 email: { 9 email: true 10 //emailValid: true // Custom validation to check for . and a suffix. 11 } 12 }, 13 submitHandler: function(form) { 14 var data = jQuery(form).serialize(); 15 jQuery('#submit_press_clips .submit').prop('disabled', true); 16 jQuery('#form-msg').text('Processing Clip...'); 17 jQuery.ajax({ 18 type: "POST", 19 url: signupAjax.ajaxurl, 20 data: { 21 action: 'clips_action', 22 data: data 23 }, 24 success: function(response) { 25 jQuery('#form-msg').text(response); 26 jQuery('#submit_press_clips .submit').prop('disabled', false); // Remove in case of refresh 27 jQuery('#submit_press_clips input:not(#clips_date,#clips_distdate),#submit_press_clips textarea').val(''); 28 }, 29 error: function(){ 30 jQuery('#submit_press_clips .submit').prop('disabled', false); // Remove in case of refresh 31 console.log('err'); 32 } 33 }); 34 } 35 }); 36 37 //jQuery.validator.addMethod("emailValid", function(value, element) { 38 //return this.optional( element ) || ( /^[a-z0-9]+([-._][a-z0-9]+)*@([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}$/.test( value ) && /^(?=.{1,64}@.{4,64}$)(?=.{6,100}$).*/.test( value ) ); 39 //}, 'Please enter a valid email address.'); 40 41 } 42 43});
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.