mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-12 10:21:22 +00:00
Monotone-Parent: 390a05b1ac3b58296283f83b59fffdd48169efff
Monotone-Revision: b3ec0cfe7976ab501f5ae8da536145c87f9c32a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-26T00:19:23 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -41,13 +41,13 @@ function uixEarlierDate(date1, date2) {
|
||||
function validateAptEditor() {
|
||||
var e, startdate, enddate, tmpdate;
|
||||
|
||||
e = document.getElementById('summary');
|
||||
e = $('summary');
|
||||
if (e.value.length == 0) {
|
||||
if (!confirm(labels.validate_notitle.decodeEntities()))
|
||||
return false;
|
||||
}
|
||||
|
||||
e = document.getElementById('startTime_date');
|
||||
e = $('startTime_date');
|
||||
if (e.value.length != 10) {
|
||||
alert(labels.validate_invalid_startdate.decodeEntities());
|
||||
return false;
|
||||
@@ -58,7 +58,7 @@ function validateAptEditor() {
|
||||
return false;
|
||||
}
|
||||
|
||||
e = document.getElementById('endTime_date');
|
||||
e = $('endTime_date');
|
||||
if (e.value.length != 10) {
|
||||
alert(labels.validate_invalid_enddate.decodeEntities());
|
||||
return false;
|
||||
@@ -174,3 +174,16 @@ function saveEvent(sender) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function _dayAsShortString(node) {
|
||||
var date = node.value.split("/");
|
||||
return date[2] + date[1] + date[0];
|
||||
}
|
||||
|
||||
function startDayAsShortString() {
|
||||
return _dayAsShortString($('startTime_date'));
|
||||
}
|
||||
|
||||
function endDayAsShortString() {
|
||||
return _dayAsShortString($('endTime_date'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user