From 9ca6ecc62866499efc19d2423ef07faaaa6d1758 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 30 Aug 2006 22:59:03 +0000 Subject: [PATCH] Monotone-Parent: 844f1f631a8e5c8bd991267dca0d6ec51a256f21 Monotone-Revision: 98c8c424b0d9a989a81434f86821544066552105 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-30T22:59:03 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Scheduler/UIxCalDayTable.m | 13 +++++++++++++ UI/Templates/SchedulerUI/UIxCalDayTable.wox | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d800b096a..6c33df7c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-08-30 Wolfgang Sourdeau + * UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable -currentAppointmentDay]) + ([UIxCalDayTable -currentAppointmentHour]): new methods that + returns correctly formatted values used as attributes for JS code. + * UI/Contacts/UIxContactSelector.m ([UIxContactSelector -initialContactsAsString]): renamed implementation of initialParticipants. diff --git a/UI/Scheduler/UIxCalDayTable.m b/UI/Scheduler/UIxCalDayTable.m index 1cb03e360..8b2181138 100644 --- a/UI/Scheduler/UIxCalDayTable.m +++ b/UI/Scheduler/UIxCalDayTable.m @@ -161,6 +161,14 @@ return currentTableDay; } +- (NSString *) currentAppointmentDay +{ + return [NSString stringWithFormat: @"%d%.2d%.2d", + [currentTableDay yearOfCommonEra], + [currentTableDay monthOfYear], + [currentTableDay dayOfMonth]]; +} + - (void) setCurrentTableHour: (NSString *) aTableHour { currentTableHour = aTableHour; @@ -171,6 +179,11 @@ return currentTableHour; } +- (NSString *) currentAppointmentHour +{ + return [NSString stringWithFormat: @"%.2d00", [currentTableHour intValue]]; +} + - (NSString *) labelForDay { return [NSString stringWithFormat: @"%@ %@", diff --git a/UI/Templates/SchedulerUI/UIxCalDayTable.wox b/UI/Templates/SchedulerUI/UIxCalDayTable.wox index 18c920e6a..6e0e53cbc 100644 --- a/UI/Templates/SchedulerUI/UIxCalDayTable.wox +++ b/UI/Templates/SchedulerUI/UIxCalDayTable.wox @@ -56,7 +56,8 @@