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