зеркало из https://github.com/mozilla/gecko-dev.git
adding setDisplayCalendar function to set the current composite calendar
This commit is contained in:
Родитель
c52be56a61
Коммит
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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче