Monotone-Parent: 5358dac96702062963946c8e313dafef1c51fd00

Monotone-Revision: 35935e7cb23cfd2e86e20fb2fb2bfe4592bb4a49

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-05-16T20:59:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-05-16 20:59:39 +00:00
parent 1d2ce3c5ef
commit e6fc5de307

View File

@@ -1622,9 +1622,13 @@ function onCalendarModify(event) {
function updateCalendarProperties(calendarID, calendarName, calendarColor) {
var idParts = calendarID.split(":");
var nodeID = "/" + idParts[0];
if (idParts.length > 1)
nodeID += "_" + idParts[1].split("/")[1];
var folderName = idParts[1].split("/")[1];
var nodeID;
if (idParts[0] != UserLogin)
nodeID = "/" + idParts[0] + "_" + folderName;
else
nodeID = "/" + folderName;
log("nodeID: " + nodeID);
var calendarNode = $(nodeID);
var childNodes = calendarNode.childNodes;
childNodes[childNodes.length-1].nodeValue = calendarName;
@@ -1688,8 +1692,7 @@ function appendCalendar(folderName, folderPath) {
li.appendChild(checkBox);
li.appendChild(document.createTextNode(" "));
$(checkBox).addClassName("checkBox");
if (owner == UserLogin)
checkBox.checked = 1;
checkBox.checked = 1;
var colorBox = document.createElement("div");
li.appendChild(colorBox);