adding setDisplayCalendar function to set the current composite calendar

This commit is contained in:
pavlov%pavlov.net 2005-04-07 18:43:52 +00:00
Родитель c52be56a61
Коммит cf07e1ad5c
1 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -39,8 +39,9 @@
every view needs to have the following:
properties:
startDate calIDateTime
endDate calIDateTime
displayCalendar calICalendar
startDate calIDateTime
endDate calIDateTime
functions:
goToDay
@ -50,6 +51,11 @@
calendarView.prototype = {
setDisplayCalendar: function(calendar) {
this.displayCalendar = calendar;
},
/* public stuff */
refresh: function() {
var savedThis = this;
@ -65,9 +71,9 @@ calendarView.prototype = {
}
};
var ccalendar = getCalendar();
ccalendar.getItems(ccalendar.ITEM_FILTER_TYPE_EVENT | ccalendar.ITEM_FILTER_CLASS_OCCURRENCES,
0, this.startDate, this.endDate, getListener);
var calendar = this.displayCalendar;
calendar.getItems(calendar.ITEM_FILTER_TYPE_EVENT | calendar.ITEM_FILTER_CLASS_OCCURRENCES,
0, this.startDate, this.endDate, getListener);
},
goToToday: function() {