From d285f08effe3955640cc6692c03b386f1578cf2f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 30 Jan 2007 18:18:30 +0000 Subject: [PATCH] Monotone-Parent: 338584071c5091c3b7b9c29761fd58e1c944ef73 Monotone-Revision: 72e9d69b6c2222ec4be3ace83edc64181859f8fe Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-30T18:18:30 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxCalCalendarsListView.m | 2 -- UI/WebServerResources/SchedulerUI.js | 14 ++++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/UI/Scheduler/UIxCalCalendarsListView.m b/UI/Scheduler/UIxCalCalendarsListView.m index c84369be9..b25de8200 100644 --- a/UI/Scheduler/UIxCalCalendarsListView.m +++ b/UI/Scheduler/UIxCalCalendarsListView.m @@ -104,8 +104,6 @@ darkenedColor (const char value) (255 / colorTable[0]) - 1]; } - NSLog(@"color = '%@'", color); - return color; } diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 7118d7a9b..f2d800c3c 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -178,10 +178,11 @@ function deleteEventCallback(http) { if (http.readyState == 4 && http.status == 200) { - var nodes = $(http.callbackData); + var nodes = http.callbackData; for (var i = 0; i < nodes.length; i++) { var node = $(nodes[i]); - node.parentNode.removeChild(node); + if (node) + node.parentNode.removeChild(node); } if (eventsToDelete.length) _batchDeleteEvents(); @@ -453,7 +454,6 @@ function onMonthOverview() function scrollDayView(hour) { - log("stest1"); var rowNumber; if (hour) { if (hour.length == 3) @@ -471,8 +471,6 @@ function scrollDayView(hour) var hours = daysView.childNodesWithTag("div")[0].childNodesWithTag("div"); if (hours.length > 0) daysView.parentNode.scrollTop = hours[rowNumber + 1].offsetTop; - - log("stest2"); } function onClickableCellsDblClick(event) { @@ -762,7 +760,6 @@ function onCalendarSelectAppointment() { list.deselectAll(); var aptCName = this.getAttribute("aptCName"); - listOfSelection = null; if (selectedCalendarCell) selectedCalendarCell.deselect(); this.select(); @@ -786,6 +783,11 @@ function onCalendarSelectDay(event) { changeMonthCalendarDisplayOfSelectedDay(this); changeDateSelectorDisplay(day); + if (listOfSelection) { + listOfSelection.addClassName("_unfocused"); + listOfSelection = null; + } + if (needRefresh) refreshAppointments(); }