mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user