Merge pull request #254 from kuuak/master
Add onLoad callback to reCAPTCHA service
This commit is contained in:
commit
fe84c6bc33
|
|
@ -1327,8 +1327,9 @@ tarteaucitron.services.recaptcha = {
|
||||||
"cookies": ['nid'],
|
"cookies": ['nid'],
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
|
||||||
tarteaucitron.fallback(['g-recaptcha'], '');
|
tarteaucitron.fallback(['g-recaptcha'], '');
|
||||||
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
|
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
|
||||||
},
|
},
|
||||||
"fallback": function () {
|
"fallback": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue