');
} else {
$JDB('#jde-wq000010684764670vb-form-message').html('');
document.getElementById('jde-wq000010684764670vb-form').reset();
if (response.data.redirect !== undefined && response.data.redirect) {
setTimeout(function() {
window.location = response.data.redirectURL;
}, response.data.redirectDelay);
}
}
if (recaptchaWidgetJdeWq000010684764670vb != null) {
grecaptcha.reset(recaptchaWidgetJdeWq000010684764670vb);
}
$JDB('#jde-wq000010684764670vb-form-loading').addClass('jdb-d-none');
$JDB('#jde-wq000010684764670vb-form :input').prop('disabled', false);
},
onError: function(error) {
alert(error.responseText);
$JDB('#jde-wq000010684764670vb-form-loading').addClass('jdb-d-none');
$JDB('#jde-wq000010684764670vb-form :input').prop('disabled', false);
}
});
$JDB('#jde-wq000010684764670vb-form').parsley().on('form:submit', function() {
if (recaptchaWidgetJdeWq000010684764670vb != null) {
var response = grecaptcha.getResponse(
recaptchaWidgetJdeWq000010684764670vb );
if (response == '') {
$JDB('#jde-wq000010684764670vb-form-message').html('');
return false;
}
}
JDBPack.form('#jde-wq000010684764670vb-form').submit();
return false;
});
