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);
|
deserialize(businessSettings);
|
||||||
|
|
||||||
let workingPlan = {};
|
let companyWorkingPlan = {};
|
||||||
|
|
||||||
App.Vars.business_settings.forEach((generalSetting) => {
|
App.Vars.business_settings.forEach((generalSetting) => {
|
||||||
if (generalSetting.name === 'company_working_plan') {
|
if (generalSetting.name === 'company_working_plan') {
|
||||||
workingPlan = JSON.parse(generalSetting.value);
|
companyWorkingPlan = JSON.parse(generalSetting.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
workingPlanManager = new WorkingPlan();
|
workingPlanManager = new App.Utils.WorkingPlan();
|
||||||
workingPlanManager.setup(workingPlan);
|
workingPlanManager.setup(companyWorkingPlan);
|
||||||
workingPlanManager.timepickers(false);
|
workingPlanManager.timepickers(false);
|
||||||
workingPlanManager.bindEventHandlers();
|
workingPlanManager.bindEventHandlers();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue