From a8acece2f23bb0af8c325246dad1eef200941ff2 Mon Sep 17 00:00:00 2001 From: helge Date: Tue, 19 Jul 2005 09:41:41 +0000 Subject: [PATCH] parse start/enddate fields using skycalendar and report errors git-svn-id: http://svn.opengroupware.org/SOGo/trunk@819 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Templates/ChangeLog | 3 +++ SOGo/UI/Templates/UIxAppointmentEditor.wox | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/SOGo/UI/Templates/ChangeLog b/SOGo/UI/Templates/ChangeLog index 3dab1b64..95263781 100644 --- a/SOGo/UI/Templates/ChangeLog +++ b/SOGo/UI/Templates/ChangeLog @@ -1,5 +1,8 @@ 2005-07-19 Helge Hess + * UIxAppointmentEditor.wox: use parsing function from skycalendar.js + to check validity of date fields + * UIxAppointmentEditor.wox: check whether title is set and raise a confirm panel if not, check if startdate/enddate are 10 chars long diff --git a/SOGo/UI/Templates/UIxAppointmentEditor.wox b/SOGo/UI/Templates/UIxAppointmentEditor.wox index 3a8d49ab..f41a9e4d 100644 --- a/SOGo/UI/Templates/UIxAppointmentEditor.wox +++ b/SOGo/UI/Templates/UIxAppointmentEditor.wox @@ -23,12 +23,16 @@ alert(''); return false; } + if (cal_prs_date1(e.value) == null) + return false; e = document.getElementById('endTime_date'); if (e.value.length != 10) { alert(''); return false; } + if (cal_prs_date1(e.value) == null) + return false; // TODO: parse start/enddate and ensure that start is before end -- 2.39.5