diff --git a/UI/Scheduler/UIxComponentEditor.h b/UI/Scheduler/UIxComponentEditor.h index 2a9f64910..4e292b8ea 100644 --- a/UI/Scheduler/UIxComponentEditor.h +++ b/UI/Scheduler/UIxComponentEditor.h @@ -178,6 +178,7 @@ /* access */ - (BOOL) isMyComponent; - (BOOL) canEditComponent; +- (unsigned int) firstDayOfWeek; /* helpers */ - (NSString *) completeURIForMethod: (NSString *) _method; diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index beacfa1db..ced89c05e 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -2532,6 +2532,15 @@ RANGE(2); return [[self clientObject] ownerInContext: context]; } +- (unsigned int) firstDayOfWeek +{ + SOGoUserDefaults *ud; + + ud = [[context activeUser] userDefaults]; + + return [ud firstDayOfWeek]; +} + // returns the raw content of the object - (WOResponse *) rawAction { diff --git a/UI/Templates/SchedulerUI/UIxComponentEditor.wox b/UI/Templates/SchedulerUI/UIxComponentEditor.wox index 499fe986a..586f86150 100644 --- a/UI/Templates/SchedulerUI/UIxComponentEditor.wox +++ b/UI/Templates/SchedulerUI/UIxComponentEditor.wox @@ -22,6 +22,7 @@ var attendees = ; var ownerLogin = ''; var emailAlarmsEnabled = ; + var firstDayOfWeek = ; var organizer = ;var owners = ;