mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-22 13:29:29 +00:00
Monotone-Parent: b7f03c552580612d21be004dd0d73f3125fe3bcb
Monotone-Revision: f62c33ecad89ce9cd2887ae7f9c44c0e5d2eb834 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-26T22:00:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -31,9 +31,7 @@ function newEvent(sender, type) {
|
||||
+ "?day=" + day
|
||||
+ "&hm=" + hour);
|
||||
|
||||
window.open(urlstr, "",
|
||||
"width=620,height=600,resizable=0,scrollbars=0,toolbar=0," +
|
||||
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
window.open(urlstr, "", "width=620,height=600,resizable=0");
|
||||
|
||||
return false; /* stop following the link */
|
||||
}
|
||||
@@ -891,9 +889,29 @@ function initTimeWidgets()
|
||||
document.forms['editform']["startTime_time_minute"].addEventListener("change", onTimeWidgetChange, false);
|
||||
document.forms['editform']["endTime_time_hour"].addEventListener("change", onTimeWidgetChange, false);
|
||||
document.forms['editform']["endTime_time_minute"].addEventListener("change", onTimeWidgetChange, false);
|
||||
|
||||
document.forms['editform']["startTime_date"].assignReplica($("FBStartTimeReplica_date"));
|
||||
document.forms['editform']["endTime_date"].assignReplica($("FBEndTimeReplica_date"));
|
||||
document.forms['editform']["startTime_time_hour"].assignReplica(document.forms['editform']["FBStartTimeReplica_time_hour"]);
|
||||
document.forms['editform']["endTime_time_hour"].assignReplica(document.forms['editform']["FBEndTimeReplica_time_hour"]);
|
||||
document.forms['editform']["startTime_time_minute"].assignReplica(document.forms['editform']["FBStartTimeReplica_time_minute"]);
|
||||
document.forms['editform']["endTime_time_minute"].assignReplica(document.forms['editform']["FBEndTimeReplica_time_minute"]);
|
||||
}
|
||||
|
||||
function onTimeWidgetChange()
|
||||
{
|
||||
setTimeout("redisplayFreeBusyZone();", 1000);
|
||||
}
|
||||
|
||||
function dayAsShortDateString(node) {
|
||||
var dateStr = '';
|
||||
var date = node.value.split("/");
|
||||
if (date.length == 3)
|
||||
dateStr += date[2] + date[1] + date[0];
|
||||
else {
|
||||
date = node.value.split("-");
|
||||
dateStr += date[0] + date[1] + date[2];
|
||||
}
|
||||
|
||||
return dateStr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user