Skip to content

Commit

Permalink
Solves problem on loading reCaptcha v2 on Chrome, also works on IE11 …
Browse files Browse the repository at this point in the history
…and FF36.0.4
  • Loading branch information
Guido De Gobbis committed Mar 31, 2015
1 parent 16e292c commit 60d5d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/captcha/recaptcha/recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public function onInit($id = 'dynamic_recaptcha_1')

JHtml::_('script', $file, true, true);

$document->addScriptDeclaration('jQuery(document).ready(function() {'
$document->addScriptDeclaration('jQuery(document).ready(function($) {$(window).load(function() {'
. 'grecaptcha.render("' . $id . '", {sitekey: "' . $pubkey . '", theme: "' . $theme . '"});'
. '});'
. '});});'
);
break;
}
Expand Down

0 comments on commit 60d5d2b

Please sign in to comment.