showing the recaptcha
This commit is contained in:
@@ -36,7 +36,12 @@ function ( // eslint-disable-line func-names
|
|||||||
// non ajax post request
|
// non ajax post request
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// ajax request
|
|
||||||
|
if (formData['g-recaptcha-response']) {
|
||||||
|
formData.data.recaptcha = formData['g-recaptcha-response'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// ajax request
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
url: window.MailPoetForm.ajax_url,
|
url: window.MailPoetForm.ajax_url,
|
||||||
token: formData.token,
|
token: formData.token,
|
||||||
|
@@ -22,4 +22,4 @@
|
|||||||
var MailPoetForm = <%= json_encode(mailpoet_form) %>;
|
var MailPoetForm = <%= json_encode(mailpoet_form) %>;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user