зеркало из https://github.com/mozilla/pjs.git
Bug 324665 New events do not display in day/week view until refresh. patch by michael.buettner@sun.com, r=jminta
This commit is contained in:
Родитель
fec7d0daf0
Коммит
e0d9888dd1
|
@ -2213,6 +2213,7 @@
|
|||
// they're likely to be immutable.
|
||||
var d2 = d.clone();
|
||||
d2.isDate = true;
|
||||
d2.makeImmutable();
|
||||
|
||||
this.mDateColumns.push ( { date: d2, column: dayEventsBox, header: dayHeaderBox } );
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ var ltnCalendarViewController = {
|
|||
aCalendar.addItem(event, null);
|
||||
} else {
|
||||
// default pop up the dialog
|
||||
var date = document.getElementById("calendar-view-box").selectedPanel.selectedDay;
|
||||
var date = document.getElementById("calendar-view-box").selectedPanel.selectedDay.clone();
|
||||
date.isDate = false;
|
||||
createEventWithDialog(aCalendar, date, date);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче