inns/wp-content/plugins/gravityforms/images/spinner.svg’, true );
jQuery(‘#gform_ajax_frame_46’).on(‘load’, function() {
var contents = jQuery(this).contents().find(‘*’).html();
var is_postback = contents.indexOf(‘GF_AJAX_POSTBACK’) >= 0;
if (!is_postback) {
return;
}
var form_content = jQuery(this).contents().find(‘#gform_wrapper_46’);
var is_confirmation = jQuery(this).contents().find(‘#gform_confirmation_wrapper_46’).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_46’).html(form_content.html());
if (form_content.hasClass(‘gform_validation_error’)) {
jQuery(‘#gform_wrapper_46’).addClass(‘gform_validation_error’);
} else {
jQuery(‘#gform_wrapper_46’).removeClass(‘gform_validation_error’);
}
setTimeout(function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */
}, 50);
if (window[‘gformInitDatepicker’]) {
gformInitDatepicker();
}
if (window[‘gformInitPriceFields’]) {
gformInitPriceFields();
}
var current_page = jQuery(‘#gform_source_page_number_46’).val();
gformInitSpinner(46, ‘https://www.positive.news/wp-content/plugins/gravityforms/images/spinner.svg’, true);
}
});
/* ]]> */
Read the full article on Positive News here: Read More