diff --git a/mozilla/calendar/base/content/calendar-multiday-view.xml b/mozilla/calendar/base/content/calendar-multiday-view.xml
index 796e640bed0..922e4c27826 100644
--- a/mozilla/calendar/base/content/calendar-multiday-view.xml
+++ b/mozilla/calendar/base/content/calendar-multiday-view.xml
@@ -1876,6 +1876,7 @@
0.1
[]
null
+ null
0*60
24*60
@@ -2274,6 +2275,9 @@
if (this.numVisibleDates == 1)
return this.mDateColumns[0].date;
+ if (this.mSelectedDay)
+ return this.mSelectedDay;
+
if (this.mSelectedDayCol)
return this.mSelectedDayCol.date;
@@ -2295,11 +2299,11 @@
if (val) {
this.mSelectedDayCol = this.findColumnForDate(val);
if (this.mSelectedDayCol) {
+ this.mSelectedDay = this.mSelectedDayCol.date;
this.mSelectedDayCol.column.selected = true;
this.mSelectedDayCol.header.setAttribute("selected", "true");
} else {
- dump ("XX couldn't find column to select for day: " + val + "\n");
- return null;
+ this.mSelectedDay = val;
}
}
this.fireEvent("dayselect", val);