From 7b2315c371c56a4fa902e61bfdc7f81583c13775 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 18 Jan 2022 08:47:16 +0100 Subject: [PATCH] Rename the working plan bindEventListeners to addEventListeners --- assets/js/pages/business_settings.js | 2 +- assets/js/pages/providers.js | 2 +- assets/js/utils/working_plan.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/pages/business_settings.js b/assets/js/pages/business_settings.js index e1279494..d857949e 100644 --- a/assets/js/pages/business_settings.js +++ b/assets/js/pages/business_settings.js @@ -146,7 +146,7 @@ App.Pages.BusinessSettings = (function () { workingPlanManager = new App.Utils.WorkingPlan(); workingPlanManager.setup(companyWorkingPlan); workingPlanManager.timepickers(false); - workingPlanManager.bindEventHandlers(); + workingPlanManager.addEventListeners(); $saveSettings.on('click', onSaveSettingsClick); diff --git a/assets/js/pages/providers.js b/assets/js/pages/providers.js index b54bf3fe..d32e4bc2 100755 --- a/assets/js/pages/providers.js +++ b/assets/js/pages/providers.js @@ -527,7 +527,7 @@ App.Pages.Providers = (function () { */ function initialize() { workingPlanManager = new App.Utils.WorkingPlan(); - workingPlanManager.bindEventHandlers(); + workingPlanManager.addEventListeners(); resetForm(); filter(''); diff --git a/assets/js/utils/working_plan.js b/assets/js/utils/working_plan.js index 365e6fc5..6edef006 100755 --- a/assets/js/utils/working_plan.js +++ b/assets/js/utils/working_plan.js @@ -342,9 +342,9 @@ App.Utils.WorkingPlan = (function () { }); } /** - * Bind the event handlers. + * Add the utility event listeners. */ - bindEventHandlers() { + addEventListeners() { /** * Event: Day Checkbox "Click" *