mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Update the business setting page module according to the new working plan utility changes
This commit is contained in:
parent
7b7698f689
commit
eeb0a8445d
1 changed files with 4 additions and 4 deletions
|
@ -133,16 +133,16 @@ App.Pages.BusinessSettings = (function () {
|
|||
|
||||
deserialize(businessSettings);
|
||||
|
||||
let workingPlan = {};
|
||||
let companyWorkingPlan = {};
|
||||
|
||||
App.Vars.business_settings.forEach((generalSetting) => {
|
||||
if (generalSetting.name === 'company_working_plan') {
|
||||
workingPlan = JSON.parse(generalSetting.value);
|
||||
companyWorkingPlan = JSON.parse(generalSetting.value);
|
||||
}
|
||||
});
|
||||
|
||||
workingPlanManager = new WorkingPlan();
|
||||
workingPlanManager.setup(workingPlan);
|
||||
workingPlanManager = new App.Utils.WorkingPlan();
|
||||
workingPlanManager.setup(companyWorkingPlan);
|
||||
workingPlanManager.timepickers(false);
|
||||
workingPlanManager.bindEventHandlers();
|
||||
|
||||
|
|
Loading…
Reference in a new issue