Fearless Independent News & Analysis

Subscribe to Truthout

Get daily news, in-depth reporting and critical analysis from the journalists, activists and thinkers who are working to improve our world..

= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find(‘#gform_wrapper_410020657’);var is_confirmation = jQuery(this).contents().find(‘#gform_confirmation_wrapper_410020657’).length > 0;var is_redirect = contents.indexOf(‘gformRedirect(){‘) >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery(‘html’).css(‘margin-top’), 10) + parseInt(jQuery(‘body’).css(‘margin-top’), 10) + 100;if(is_form){jQuery(‘#gform_wrapper_410020657’).html(form_content.html());if(form_content.hasClass(‘gform_validation_error’)){jQuery(‘#gform_wrapper_410020657’).addClass(‘gform_validation_error’);} else {jQuery(‘#gform_wrapper_410020657’).removeClass(‘gform_validation_error’);}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).scrollTop(jQuery(‘#gform_wrapper_410020657’).offset().top – mt); }, 50 );if(window[‘gformInitDatepicker’]) {gformInitDatepicker();}if(window[‘gformInitPriceFields’]) {gformInitPriceFields();}var current_page = jQuery(‘#gform_source_page_number_410020657_1’).val();gformInitSpinner( 410020657, ‘https://truthout.org/wp-content/plugins/gravityforms/images/spinner.gif’ );jQuery(document).trigger(‘gform_page_loaded’, [410020657, current_page]);window[‘gf_submitting_410020657’] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find(‘.GF_AJAX_POSTBACK’).html();if(!confirmation_content){confirmation_content = contents;}setTimeout(function(){jQuery(‘#gform_wrapper_410020657’).replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery(‘#gf_410020657’).offset().top – mt);jQuery(document).trigger(‘gform_confirmation_loaded’, [410020657]);window[‘gf_submitting_410020657’] = false;}, 50);}else{jQuery(‘#gform_410020657’).append(contents);if(window[‘gformRedirect’]) {gformRedirect();}}jQuery(document).trigger(‘gform_post_render’, [410020657, current_page]);} );} );]]>

Related Post

Be the first to comment

Leave a Reply

Your email address will not be published.


*