Monotone-Parent: 338584071c5091c3b7b9c29761fd58e1c944ef73

Monotone-Revision: 72e9d69b6c2222ec4be3ace83edc64181859f8fe

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-30T18:18:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-01-30 18:18:30 +00:00
parent 5d1352e99d
commit d285f08eff
2 changed files with 8 additions and 8 deletions

View File

@@ -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();
}