From 0f29325819105fc9b89920a4db9101b172a9d6e1 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 7 Jul 2006 21:43:39 +0000 Subject: [PATCH] - see ChangeLog; Monotone-Parent: a3f0d21df8bb4086c716a7df725f85f857ce0b07 Monotone-Revision: eac5138b971d77a6b7878c62a571cdfb12efa3b2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-07-07T21:43:39 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/GNUmakefile | 3 ++- UI/Scheduler/SchedulerUI.js | 9 +++++++++ UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar | 4 +++- UI/Templates/UIxAppointmentEditor.wox | 12 +++++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 UI/Scheduler/SchedulerUI.js diff --git a/UI/Scheduler/GNUmakefile b/UI/Scheduler/GNUmakefile index 7ce6c5184..9e4784139 100644 --- a/UI/Scheduler/GNUmakefile +++ b/UI/Scheduler/GNUmakefile @@ -52,7 +52,8 @@ SchedulerUI_OBJC_FILES = \ SchedulerUI_RESOURCE_FILES += \ Version \ - product.plist + product.plist \ + SchedulerUI.js SchedulerUI_RESOURCE_FILES += \ images/next_week.gif \ diff --git a/UI/Scheduler/SchedulerUI.js b/UI/Scheduler/SchedulerUI.js new file mode 100644 index 000000000..11d6d6f7d --- /dev/null +++ b/UI/Scheduler/SchedulerUI.js @@ -0,0 +1,9 @@ +function newEvent(sender) { + var urlstr; + + urlstr = "new"; + window.open(urlstr, "SOGo_compose", + "width=680,height=520,resizable=1,scrollbars=1,toolbar=0," + + "location=0,directories=0,status=0,menubar=0,copyhistory=0"); + return false; /* stop following the link */ +} diff --git a/UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar b/UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar index f377d4215..f198607be 100644 --- a/UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar +++ b/UI/Scheduler/Toolbars/SOGoAppointmentFolder.toolbar @@ -1,6 +1,8 @@ ( /* the toolbar groups -*-cperl-*- */ - ( { link = "new"; + ( { link = "#"; + isSafe = NO; label="New Event"; + onclick = "newEvent(this);return false;"; image="new-event.png"; }, { link = "new_task"; label="New Task"; diff --git a/UI/Templates/UIxAppointmentEditor.wox b/UI/Templates/UIxAppointmentEditor.wox index 537731229..020849fe5 100644 --- a/UI/Templates/UIxAppointmentEditor.wox +++ b/UI/Templates/UIxAppointmentEditor.wox @@ -8,6 +8,14 @@ className="UIxPageFrame" title="name" > + + @@ -313,9 +321,11 @@ - +