1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-15 05:14:28 +02:00

[ticket/15564] Move recaptcha callbacks to global space

PHPBB3-15564
This commit is contained in:
Jakub Senko 2018-10-15 08:23:29 +02:00 committed by Marc Alexander
parent a05d744266
commit 25d3292d30

View File

@ -1687,10 +1687,10 @@ phpbb.recaptchaOnSubmit = function () {
// reCAPTCHA doesn't accept callback functions nested inside objects
// so we need to make this helper functions here
function phpbbRecaptchaOnLoad() {
window.phpbbRecaptchaOnLoad = function() {
phpbb.recaptchaOnLoad();
}
function phpbbRecaptchaOnSubmit() {
window.phpbbRecaptchaOnSubmit = function() {
phpbb.recaptchaOnSubmit();
}