Monotone-Parent: e83902dbab2643711380599c555ac903400fd110

Monotone-Revision: 18f04728c7d6b1760dbcd750fc045948d7001567

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-06-23T20:44:54
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-06-23 20:44:54 +00:00
parent f773bc2e66
commit f1fa01109c
6 changed files with 32 additions and 27 deletions

View File

@@ -842,6 +842,7 @@ function refreshCalendarEventsCallback(http) {
function drawCalendarEvent(eventData, sd, ed) {
var dateTuples = new Array();
// log ("drawCalendarEvent...");
var viewStartDate = sd.asDate();
var viewEndDate = ed.asDate();
@@ -850,7 +851,7 @@ function drawCalendarEvent(eventData, sd, ed) {
var endDate = new Date();
endDate.setTime(eventData[5] * 1000);
//log ("s: " + startDate + "; e: " + endDate);
// log ("s: " + startDate + "; e: " + endDate);
var days = startDate.daysUpTo(endDate);
@@ -861,8 +862,8 @@ function drawCalendarEvent(eventData, sd, ed) {
else
title = eventData[3];
// log("title: " + title);
// log("viewS: " + viewStartDate);
// log("title: " + title);
// log("viewS: " + viewStartDate);
var startHour = null;
var endHour = null;
@@ -872,7 +873,7 @@ function drawCalendarEvent(eventData, sd, ed) {
&& days[i].laterDate(viewEndDate) == viewEndDate) {
var starts;
// log("day: " + days[i]);
// log("day: " + days[i]);
if (i == 0) {
var quarters = (startDate.getUTCHours() * 4
+ Math.floor(startDate.getUTCMinutes() / 15));
@@ -882,7 +883,7 @@ function drawCalendarEvent(eventData, sd, ed) {
}
else
starts = 0;
var ends;
var lasts;
if (i == days.length - 1) {
@@ -953,10 +954,9 @@ function drawCalendarEvent(eventData, sd, ed) {
}
function eventClass(cname) {
return escape(cname.replace(".", "-"));
return escape(cname.replace(".", "-"));
}
function newEventDIV(cname, calendar, starts, lasts,
startHour, endHour, title) {
var eventDiv = document.createElement("div");
@@ -1628,7 +1628,7 @@ function updateCalendarProperties(calendarID, calendarName, calendarColor) {
nodeID = "/" + idParts[0] + "_" + folderName;
else
nodeID = "/" + folderName;
log("nodeID: " + nodeID);
// log("nodeID: " + nodeID);
var calendarNode = $(nodeID);
var childNodes = calendarNode.childNodes;
childNodes[childNodes.length-1].nodeValue = calendarName;
@@ -1687,16 +1687,15 @@ function appendCalendar(folderName, folderPath) {
li.setAttribute("id", folderPath);
li.setAttribute("owner", owner);
var checkBox = document.createElement("input");
checkBox.setAttribute("type", "checkbox");
li.appendChild(checkBox);
var checkBox = createElement("input", null, "checkBox", { checked: 1 },
{ type: "checkbox" }, li);
li.appendChild(document.createTextNode(" "));
$(checkBox).addClassName("checkBox");
checkBox.checked = 1;
var colorBox = document.createElement("div");
li.appendChild(colorBox);
li.appendChild(document.createTextNode(folderName));
li.appendChild(document.createTextNode(folderName
.replace("&lt;", "<", "g")
.replace("&gt;", ">", "g")));
colorBox.appendChild(document.createTextNode("OO"));
$(colorBox).addClassName("colorBox");