From 0bcd28ce40a28faebb28b436b5137022de8839c0 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Fri, 16 May 2008 21:06:50 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1411 d1b88da0-ebda-0310-925b-ed51d893ca5b --- UI/WebServerResources/SchedulerUI.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index a9eef319..0c3c2a52 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -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); -- 2.39.5