1$(document).on("click",".blog-comments-reply-link",function() { 2 if($(this).closest('.blog-comment-item').hasClass('show-comments-form')) { 3 $(this).closest('.blog-comment-item').removeClass('show-comments-form'); 4 $('#blog-comments-form-wrap').append($(this).closest('.blog-comment-item').find('>.parent-comment-comment-form-container .blog-comment-form-wrap')); 5 $('#parent_content_id').val(''); 6 7 } else { 8 if($('.blog-comment-item.show-comments-form').length) { 9 $(this).closest('.blog-comment-item').find('>.parent-comment-comment-form-container').append($('.blog-comment-item.show-comments-form').find('>.parent-comment-comment-form-container .blog-comment-form-wrap')); 10 $('.blog-comment-item.show-comments-form').removeClass('show-comments-form'); 11 } else { 12 $(this).closest('.blog-comment-item').find('>.parent-comment-comment-form-container').append($('#blog-comments-form-wrap .blog-comment-form-wrap')); 13 } 14 15 $(this).closest('.blog-comment-item').addClass('show-comments-form'); 16 17 $('#parent_content_id').val($(this).closest('.blog-comment-item').attr('data-comment-id')); 18 $('#content-field').focus(); 19 } 20 21 return false; 22}); 23 24$(document).on("submit",".comments-form",function() { 25 var form = $(this); 26 var parent_container = $(form).closest(".blog-comment-item"); 27 var errors = ""; 28 29 if(!$(form).find("textarea[name=content]").val()) errors += (errors?"<br />":"")+"Please enter some comments."; 30 if(!$(form).find("input[name=title]").val()) errors += (errors?"<br />":"")+"Please enter your name."; 31 if(!$(form).find("input[name=additional_content]").val()) errors += (errors?"<br />":"")+"Please enter your email."; 32 if($('#g-recaptcha-response').length && !$('#g-recaptcha-response').val()) errors += (errors?"<br />":"")+"Please check to confirm you are not a robot."; 33 34 if(errors) { 35 showAlert(errors,"bad"); 36 return false; 37 } 38});
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.