mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Monotone-Parent: 520d3359a27192e2a9761e453f816cdd755a1509
Monotone-Revision: 93761fa4ba935f3bb44092a15d1a6d416b73af2a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-31T22:58:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2006-10-31 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalDayTable.m ([UIxCalDayTable
|
||||
-dayCellClasses]): new method that returns a string containing the
|
||||
css classes applicable to the current cell, depending on the
|
||||
position of the day in the week, the day of today and the
|
||||
requested day.
|
||||
|
||||
* UI/Scheduler/UIxCalCalendarsListView.m ([UIxCalCalendarsListView
|
||||
-currentContactAptBorder]): new method that returns the
|
||||
appropriate border color for the specified user.
|
||||
|
||||
@@ -161,6 +161,28 @@
|
||||
return currentTableDay;
|
||||
}
|
||||
|
||||
- (NSString *) dayCellClasses
|
||||
{
|
||||
NSMutableString *classes;
|
||||
int dayOfWeek;
|
||||
|
||||
classes = [NSMutableString new];
|
||||
[classes autorelease];
|
||||
[classes appendString: @"contentOfDay"];
|
||||
if (numberOfDays > 1)
|
||||
{
|
||||
dayOfWeek = [currentTableDay dayOfWeek];
|
||||
if (dayOfWeek == 0 || dayOfWeek == 6)
|
||||
[classes appendString: @" weekEndDay"];
|
||||
if ([currentTableDay isToday])
|
||||
[classes appendString: @" dayOfToday"];
|
||||
if ([[self selectedDate] isDateOnSameDay: currentTableDay])
|
||||
[classes appendString: @" selectedDay"];
|
||||
}
|
||||
|
||||
return classes;
|
||||
}
|
||||
|
||||
- (NSString *) currentAppointmentDay
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d%.2d%.2d",
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
referenceDate="selectedDate"
|
||||
canAccess="canAccessApt"
|
||||
/>
|
||||
<br />
|
||||
</var:foreach>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -54,7 +53,7 @@
|
||||
/>:00
|
||||
</td>
|
||||
<var:foreach list="daysToDisplay" item="currentTableDay"
|
||||
><td class="contentOfDay"
|
||||
><td var:class="dayCellClasses"
|
||||
onclick="onCalendarSelectDay(event, this);"
|
||||
ondblclick="return newEvent(this, 'event');"
|
||||
var:day="currentAppointmentDay"
|
||||
@@ -70,10 +69,9 @@
|
||||
url="appointmentViewURL"
|
||||
const:style="dayoverview"
|
||||
queryDictionary="currentDayQueryParameters"
|
||||
referenceDate="currentDate"
|
||||
referenceDate="currentTableDay"
|
||||
canAccess="canAccessApt"
|
||||
/>
|
||||
<br />
|
||||
</var:foreach
|
||||
></td>
|
||||
</var:foreach>
|
||||
|
||||
Reference in New Issue
Block a user