From 0beb33f1c5db5e243676a26e7bbb5daaad5c721a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20J=C3=B6rg?= Date: Mon, 17 Sep 2018 19:57:12 +0200 Subject: [PATCH] Fix bug with grecaptcha grecaptcha is already defined but only contains ready function. Init fails. --- .../static/js/djangocms_forms/jquery.djangocms-forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_forms/static/js/djangocms_forms/jquery.djangocms-forms.js b/djangocms_forms/static/js/djangocms_forms/jquery.djangocms-forms.js index 636a673..e945db3 100644 --- a/djangocms_forms/static/js/djangocms_forms/jquery.djangocms-forms.js +++ b/djangocms_forms/static/js/djangocms_forms/jquery.djangocms-forms.js @@ -46,7 +46,7 @@ $(this).ajaxSubmit(ajaxOptions); }); - if (typeof(grecaptcha) == 'undefined') { + if (typeof(grecaptcha) == 'undefined' || typeof(grecaptcha.render) =='undefined') { window.reCapctchaOnloadCallback = function() { this.renderReCaptcha(); }.bind(this);