recaptcha form fix

This commit is contained in:
2020-10-30 15:30:25 +01:00
parent 322786cdba
commit c6610b8c5c
6 changed files with 34 additions and 7 deletions

View File

@@ -13,11 +13,14 @@ $(function() {
url: $form.attr('action'),
data: $form.serialize(),
success: function(data) {
django_recaptcha_callbacks = [];
var $new = $(data).find('#' + id);
$new.find('.reveal').each(function() {
$(this).removeClass('reveal reveal_animation');
});
$new.removeClass('reveal reveal_animation');
$form.replaceWith($new);
djangoRecaptchaOnLoadCallback();
}
});
});