Monotone-Parent: d2b6077fa24d79c27ba0efea14127c05071e51b9

Monotone-Revision: d5700732397ebf4e67639bb33ff05a1c35349ff0

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-14T18:04:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-14 18:04:50 +00:00
parent 23759f2991
commit 98fd12e741
3 changed files with 24 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
2009-07-14 Cyril Robert <crobert@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m: Added a default title for
vevents and vtodos
2009-07-14 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Appointments/SOGoCalendarComponent.m
+13
View File
@@ -614,6 +614,19 @@ iRANGE(2);
- (NSString *) title
{
SOGoObject <SOGoComponentOccurence> *co;
NSString *tag;
co = [self clientObject];
if ([co isNew] && [co isKindOfClass: [SOGoCalendarComponent class]])
{
tag = [co componentTag];
if ([tag isEqualToString: @"vevent"])
[self setTitle: [self labelForKey: @"New Event"]];
else if ([tag isEqualToString: @"vtodo"])
[self setTitle: [self labelForKey: @"New Task"]];
}
return title;
}
@@ -135,11 +135,17 @@ function onComponentEditorLoad(event) {
$("repeatList").observe("change", onPopupRecurrenceWindow);
$("reminderHref").observe("click", onPopupReminderWindow);
$("reminderList").observe("change", onPopupReminderWindow);
$("summary").observe("keyup", onSummaryChange);
Event.observe(window, "resize", onWindowResize);
onPopupRecurrenceWindow(null);
onPopupReminderWindow(null);
onSummaryChange (null);
}
function onSummaryChange (e) {
document.title = $("summary").value;
}
function onWindowResize(event) {