mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Support multiple CAPTCHA instances on the same page
This commit is contained in:
parent
5012bc194b
commit
fe63f24617
5 changed files with 19 additions and 6 deletions
11
addons/recaptcha/recaptcha.js
Normal file
11
addons/recaptcha/recaptcha.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
function reCaptchaCallback() {
|
||||
$(".g-recaptcha").each(function() {
|
||||
var instance = $(this);
|
||||
grecaptcha.render(instance.attr("id"), {
|
||||
sitekey: instance.data("sitekey"),
|
||||
size: instance.data("size"),
|
||||
theme: instance.data("theme")
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue