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:
parent
772e801d4f
commit
a05d744266
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user