mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15564] Move JS functions closer to related code
PHPBB3-15564
This commit is contained in:
parent
772e801d4f
commit
a05d744266
1 changed files with 9 additions and 9 deletions
|
@ -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…
Add table
Reference in a new issue