1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 06:38:43 +01:00

[ticket/15564] Move JS functions closer to related code

PHPBB3-15564
This commit is contained in:
Jakub Senko 2018-04-05 08:03:35 +02:00 committed by Marc Alexander
parent 772e801d4f
commit a05d744266

View File

@ -1685,6 +1685,15 @@ phpbb.recaptchaOnSubmit = function () {
}
}
// reCAPTCHA doesn't accept callback functions nested inside objects
// so we need to make this helper functions here
function phpbbRecaptchaOnLoad() {
phpbb.recaptchaOnLoad();
}
function phpbbRecaptchaOnSubmit() {
phpbb.recaptchaOnSubmit();
}
$(window).on('load', phpbb.lazyLoadAvatars);
/**
@ -1717,12 +1726,3 @@ $(function() {
});
})(jQuery); // Avoid conflicts with other libraries
// reCAPTCHA doesn't accept callback functions nested inside objects
// so we need to make this helper functions here
function phpbbRecaptchaOnLoad() {
phpbb.recaptchaOnLoad();
}
function phpbbRecaptchaOnSubmit() {
phpbb.recaptchaOnSubmit();
}