From a89a6d8faf9793f70e21c96dcaf0496a832f60a4 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 14 Jan 2022 08:31:12 +0100 Subject: [PATCH] Rename "init" methods to "initialize". --- assets/js/components/working_plan_exceptions_modal.js | 4 ++-- assets/js/pages/account.js | 4 ++-- assets/js/pages/admins.js | 4 ++-- assets/js/pages/booking_settings.js | 4 ++-- assets/js/pages/business_settings.js | 4 ++-- assets/js/pages/categories.js | 4 ++-- assets/js/pages/customers.js | 4 ++-- assets/js/pages/general_settings.js | 4 ++-- assets/js/pages/legal_settings.js | 4 ++-- assets/js/pages/providers.js | 4 ++-- assets/js/pages/secretaries.js | 4 ++-- assets/js/pages/services.js | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/assets/js/components/working_plan_exceptions_modal.js b/assets/js/components/working_plan_exceptions_modal.js index 07b50bd6..7f6a704e 100644 --- a/assets/js/components/working_plan_exceptions_modal.js +++ b/assets/js/components/working_plan_exceptions_modal.js @@ -403,7 +403,7 @@ App.Components.WorkingPlanExceptionsModal = (function () { }); } - function init() { + function initialize() { initializeDatepicker($date); initializeTimepicker($start); initializeTimepicker($end); @@ -419,7 +419,7 @@ App.Components.WorkingPlanExceptionsModal = (function () { $save.on('click', onSaveClick); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { add, diff --git a/assets/js/pages/account.js b/assets/js/pages/account.js index 3baf18d8..ceb31721 100644 --- a/assets/js/pages/account.js +++ b/assets/js/pages/account.js @@ -179,7 +179,7 @@ App.Pages.Account = (function () { /** * Initialize the page. */ - function init() { + function initialize() { const account = App.Vars.account; deserialize(account); @@ -191,7 +191,7 @@ App.Pages.Account = (function () { Backend.placeFooterToBottom(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/admins.js b/assets/js/pages/admins.js index d659be46..a46840c1 100644 --- a/assets/js/pages/admins.js +++ b/assets/js/pages/admins.js @@ -427,13 +427,13 @@ App.Pages.Admins = (function () { } } - function init() { + function initialize() { resetForm(); filter(''); bindEventHandlers(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { filter, diff --git a/assets/js/pages/booking_settings.js b/assets/js/pages/booking_settings.js index d532667d..6d2f470a 100644 --- a/assets/js/pages/booking_settings.js +++ b/assets/js/pages/booking_settings.js @@ -180,7 +180,7 @@ App.Pages.BookingSettings = (function () { /** * Initialize on document ready. */ - function init() { + function initialize() { const bookingSettings = App.Vars.booking_settings; deserialize(bookingSettings); @@ -196,7 +196,7 @@ App.Pages.BookingSettings = (function () { Backend.placeFooterToBottom(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/business_settings.js b/assets/js/pages/business_settings.js index 86d5bd49..ed0f96b4 100644 --- a/assets/js/pages/business_settings.js +++ b/assets/js/pages/business_settings.js @@ -127,7 +127,7 @@ App.Pages.BusinessSettings = (function () { App.Utils.Message.show(App.Lang.working_plan, App.Lang.overwrite_existing_working_plans, buttons); } - function init() { + function initialize() { const businessSettings = App.Vars.business_settings; deserialize(businessSettings); @@ -152,7 +152,7 @@ App.Pages.BusinessSettings = (function () { Backend.placeFooterToBottom(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/categories.js b/assets/js/pages/categories.js index 1b2e1423..e71533cc 100644 --- a/assets/js/pages/categories.js +++ b/assets/js/pages/categories.js @@ -325,13 +325,13 @@ App.Pages.Categories = (function () { } } - function init() { + function initialize() { resetForm(); filter(''); bindEventHandlers(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { filter, diff --git a/assets/js/pages/customers.js b/assets/js/pages/customers.js index b8492e68..ef46127f 100644 --- a/assets/js/pages/customers.js +++ b/assets/js/pages/customers.js @@ -431,13 +431,13 @@ App.Pages.Customers = (function () { } } - function init() { + function initialize() { resetForm(); bindEventHandlers(); filter(''); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { filter, diff --git a/assets/js/pages/general_settings.js b/assets/js/pages/general_settings.js index a5de0b24..420e8d1e 100644 --- a/assets/js/pages/general_settings.js +++ b/assets/js/pages/general_settings.js @@ -88,7 +88,7 @@ App.Pages.GeneralSettings = (function () { }); } - function init() { + function initialize() { const generalSettings = App.Vars.general_settings; deserialize(generalSettings); @@ -98,7 +98,7 @@ App.Pages.GeneralSettings = (function () { Backend.placeFooterToBottom(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/legal_settings.js b/assets/js/pages/legal_settings.js index 6affe4f4..0c74ce5b 100644 --- a/assets/js/pages/legal_settings.js +++ b/assets/js/pages/legal_settings.js @@ -137,7 +137,7 @@ App.Pages.LegalSettings = (function () { }); } - function init() { + function initialize() { $cookieNoticeContent.trumbowyg(); $termsAndConditionsContent.trumbowyg(); $privacyPolicyContent.trumbowyg(); @@ -151,7 +151,7 @@ App.Pages.LegalSettings = (function () { Backend.placeFooterToBottom(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/providers.js b/assets/js/pages/providers.js index 5194e536..1495b9d9 100755 --- a/assets/js/pages/providers.js +++ b/assets/js/pages/providers.js @@ -503,7 +503,7 @@ App.Pages.Providers = (function () { } } - function init() { + function initialize() { workingPlanManager = new App.Utils.WorkingPlan(); workingPlanManager.bindEventHandlers(); @@ -538,7 +538,7 @@ App.Pages.Providers = (function () { }); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { filter, diff --git a/assets/js/pages/secretaries.js b/assets/js/pages/secretaries.js index eb398926..ff7c028e 100644 --- a/assets/js/pages/secretaries.js +++ b/assets/js/pages/secretaries.js @@ -482,7 +482,7 @@ App.Pages.Secretaries = (function () { } } - function init() { + function initialize() { resetForm(); filter(''); bindEventHandlers(); @@ -511,7 +511,7 @@ App.Pages.Secretaries = (function () { }); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return {}; })(); diff --git a/assets/js/pages/services.js b/assets/js/pages/services.js index c8a7a4ef..16b15317 100644 --- a/assets/js/pages/services.js +++ b/assets/js/pages/services.js @@ -380,14 +380,14 @@ App.Pages.Services = (function () { }); } - function init() { + function initialize() { resetForm(); filter(''); bindEventHandlers(); updateAvailableCategories(); } - document.addEventListener('DOMContentLoaded', init); + document.addEventListener('DOMContentLoaded', initialize); return { filter,