mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
adding setDisplayCalendar function to set the current composite calendar
This commit is contained in:
parent
c52be56a61
commit
cf07e1ad5c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user