We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d19135 commit a6cd802Copy full SHA for a6cd802
src/modules/security.js
@@ -568,9 +568,18 @@
568
throw new Error('Google reCaptcha site key is required.');
569
}
570
571
+ var grecaptchaRenderCallback = function(result) {
572
+ $('form').each(function(){
573
+ $('[data-validation~="recaptcha"]',$(this)).each(function() {
574
+ $(this).trigger('validation', (result && result !== ''));
575
+ });
576
577
+ };
578
var widgetId = grecaptcha.render(div, {
579
sitekey: siteKey,
- theme: theme
580
+ theme: theme,
581
+ callback: grecaptchaRenderCallback,
582
+ 'expired-callback': grecaptchaRenderCallback
583
});
584
585
$input
0 commit comments