mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Minor business settings module improvements.
This commit is contained in:
parent
79c9566257
commit
f4f494e4b4
1 changed files with 6 additions and 6 deletions
|
@ -101,16 +101,16 @@ App.Pages.BusinessSettings = (function () {
|
||||||
* Save the global working plan information.
|
* Save the global working plan information.
|
||||||
*/
|
*/
|
||||||
function onApplyGlobalWorkingPlan() {
|
function onApplyGlobalWorkingPlan() {
|
||||||
var buttons = [
|
const buttons = [
|
||||||
{
|
{
|
||||||
text: App.Lang.cancel,
|
text: App.Lang.cancel,
|
||||||
click: function () {
|
click: () => {
|
||||||
$('#message-box').dialog('close');
|
$('#message-box').dialog('close');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'OK',
|
text: 'OK',
|
||||||
click: function () {
|
click: () => {
|
||||||
const workingPlan = workingPlanManager.get();
|
const workingPlan = workingPlanManager.get();
|
||||||
|
|
||||||
App.Http.BusinessSettings.applyGlobalWorkingPlan(workingPlan)
|
App.Http.BusinessSettings.applyGlobalWorkingPlan(workingPlan)
|
||||||
|
@ -137,9 +137,9 @@ App.Pages.BusinessSettings = (function () {
|
||||||
|
|
||||||
let companyWorkingPlan = {};
|
let companyWorkingPlan = {};
|
||||||
|
|
||||||
App.Vars.business_settings.forEach((generalSetting) => {
|
App.Vars.business_settings.forEach((businessSetting) => {
|
||||||
if (generalSetting.name === 'company_working_plan') {
|
if (businessSetting.name === 'company_working_plan') {
|
||||||
companyWorkingPlan = JSON.parse(generalSetting.value);
|
companyWorkingPlan = JSON.parse(businessSetting.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue