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
parent c52be56a61
commit cf07e1ad5c

View File

@ -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() {