mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 10:05:26 +00:00
Monotone-Parent: 4613db02f1ddf8a5a3a6eb835c0d9df3cad822fb
Monotone-Revision: d8068d4b9f0436c221c0b8a1a003a07b8eeeb7e2 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-19T17:09:14 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -23,15 +23,12 @@ var contactSelectorAction = 'calendars-contacts';
|
||||
|
||||
function uixEarlierDate(date1, date2) {
|
||||
// can this be done in a sane way?
|
||||
// cuicui = 'year';
|
||||
if (date1.getYear() < date2.getYear()) return date1;
|
||||
if (date1.getYear() > date2.getYear()) return date2;
|
||||
// same year
|
||||
// cuicui += '/month';
|
||||
if (date1.getMonth() < date2.getMonth()) return date1;
|
||||
if (date1.getMonth() > date2.getMonth()) return date2;
|
||||
// // same month
|
||||
// cuicui += '/date';
|
||||
if (date1.getDate() < date2.getDate()) return date1;
|
||||
if (date1.getDate() > date2.getDate()) return date2;
|
||||
// same day
|
||||
@@ -68,10 +65,8 @@ function validateAptEditor() {
|
||||
alert(labels.validate_invalid_enddate);
|
||||
return false;
|
||||
}
|
||||
// cuicui = '';
|
||||
tmpdate = uixEarlierDate(startdate, enddate);
|
||||
if (tmpdate == enddate) {
|
||||
// window.alert(cuicui);
|
||||
alert(labels.validate_endbeforestart);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user