[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 // reCAPTCHA doesn't accept callback functions nested inside objects
// so we need to make this helper functions here // so we need to make this helper functions here
function phpbbRecaptchaOnLoad() { window.phpbbRecaptchaOnLoad = function() {
phpbb.recaptchaOnLoad(); phpbb.recaptchaOnLoad();
} }
function phpbbRecaptchaOnSubmit() { window.phpbbRecaptchaOnSubmit = function() {
phpbb.recaptchaOnSubmit(); phpbb.recaptchaOnSubmit();
} }