mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user