Assign functions.js globals to window object

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-06-30 16:55:20 -03:00
parent 4ea8a2fb34
commit 084c21103b
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -11,7 +11,8 @@
* General functions, usually for data manipulation pages.
* @type {object}
*/
var Functions = {};
const Functions = {};
window.Functions = Functions;
/**
* Number of AJAX messages shown since page load.
@ -4125,8 +4126,7 @@ Functions.toggleDatepickerIfInvalid = function ($td, $inputField) {
* Function to submit the login form after validation is done.
* NOTE: do NOT use a module or it will break the callback, issue #15435
*/
// eslint-disable-next-line no-unused-vars
var recaptchaCallback = function () {
window.recaptchaCallback = function () {
$('#login_form').trigger('submit');
};