1jQuery( document ).ready(function() { 2 3 jQuery('body').on( 'click', '.smartform-collapse .smartform-collapse-toggletext', function(){ 4 5 jQuery( '.gform_body, .gform_footer', jQuery(this).parent() ).toggle(); 6 jQuery(this).parent().toggleClass( 'smartform-collapse-expanded' ); 7 8 }) 9 10 jQuery(document).bind('gform_post_render', function(e, formId, current_page){ 11 12 _parent = jQuery('#gform_' + formId ).closest('.smartform'); 13 14 if (!jQuery(_parent).length) { 15 return; 16 } 17 18 jQuery(_parent).addClass('smartform-loaded'); 19 jQuery(_parent).removeClass('ajaxcontent-loading'); 20 jQuery(_parent).removeClass('nf-ajax-loading'); 21 22 _elem = jQuery('#gform_' + formId).find('.validation_error'); 23 24 if(_elem.length){ 25 26 jQuery( '.gform_body, .gform_footer', jQuery('#gform_' + formId ) ).show(); 27 28 } 29 30 }); 31 32});
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.