Monotone-Parent: f9a470e5408fdd3a912a57d24892418ef5630bf4

Monotone-Revision: 91b936a7c3b51400c8170802ad0c722be8b8553b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-05T15:08:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-05 15:08:32 +00:00
parent c3336a2b72
commit 8e38c8e9d9
2 changed files with 8 additions and 6 deletions
+3
View File
@@ -1,5 +1,8 @@
2006-09-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/UIxAppointmentEditor.js: convert the
form's time values to integers before comparing them.
* UI/Scheduler/UIxCalAptListView.m ([UIxCalAptListView -currentStartTime])
([UIxCalAptListView -currentEndTime]): initialize the resulting
dates timezone with [self viewTimeZone].
@@ -79,18 +79,17 @@ function validateAptEditor() {
// TODO: check time
var start, end;
start = document.forms[0]['startTime_time_hour'].value;
end = document.forms[0]['endTime_time_hour'].value;
start = parseInt(document.forms[0]['startTime_time_hour'].value);
end = parseInt(document.forms[0]['endTime_time_hour'].value);
if (start > end) {
window.alert("coucou1");
alert(labels.validate_endbeforestart);
return false;
}
else if (start == end) {
start = document.forms[0]['startTime_time_minute'].value;
end = document.forms[0]['endTime_time_minute'].value;
start = parseInt(document.forms[0]['startTime_time_minute'].value);
end = parseInt(document.forms[0]['endTime_time_minute'].value);
if (start > end) {
window.alert("coucou2");
alert(labels.validate_endbeforestart);
return false;
}