replace leftover lastDateOfView with endExDateOfView.

bug 311911, r=jminta
This commit is contained in:
mvl%exedo.nl 2005-10-16 15:22:18 +00:00
parent 432cc819a8
commit 1a55915626
3 changed files with 7 additions and 7 deletions

View File

@ -665,7 +665,7 @@ CalendarView.prototype.createEventBox = function(aItemOccurrence, aInteralFuncti
//multiweek and month views call their display range something else
if(!displayStart) {
displayStart = gCalendarWindow.currentView.firstDateOfView;
displayEnd = gCalendarWindow.currentView.lastDateOfView;
displayEnd = gCalendarWindow.currentView.endExDateOfView;
}
if(startDate.jsDate < displayStart) {
startDate.jsDate = displayStart;

View File

@ -69,7 +69,7 @@
* firstDateOfView - A date equal to the date of the first box of the View (the date of
* dayBoxItemArray[0])
*
* lastDateOfView - A date equal to the date of the last box of the View (the date of
* endExDateOfView - A date equal to the date of the last box of the View (the date of
* dayBoxItemArray[41])
*
*
@ -169,7 +169,7 @@ function MonthView( calendarWindow )
this.weekNumberItemArray = new Array();
// this.kungFooDeathGripOnEventBoxes = new Array();
this.firstDateOfView = new Date();
this.lastDateOfView = new Date();
this.endExDateOfView = new Date();
var dayItemIndex = 0;
@ -219,7 +219,7 @@ MonthView.prototype.refreshEvents = function()
// Figure out the start and end days for the week we're currently viewing
var startDate = new Date(this.firstDateOfView);
var endDate = new Date(this.lastDateOfView);
var endDate = new Date(this.endExDateOfView);
endDate.setDate(endDate.getDate() + 1);
this.eventList = new Array();
@ -391,7 +391,7 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
this.setNumberOfEventsToShow();
// get this month's events and display them
var monthEventList = gEventSource.getEventsDisplayForRange( this.firstDateOfView,this.lastDateOfView );
var monthEventList = gEventSource.getEventsDisplayForRange( this.firstDateOfView,this.endExDateOfView );
// remove old event boxes
this.removeElementsByAttribute("eventbox", "monthview");
@ -650,7 +650,7 @@ MonthView.prototype.refreshDisplay = function()
var lastDateCol = (firstDateCol + lastDayOfMonth - 1) % 7;
this.firstDateOfView = new Date( newYear, newMonth, 1 - firstDateCol, 0, 0, 0 );
this.lastDateOfView = new Date( newYear, newMonth, 42 - firstDateCol, 0, 0, 0 );
this.endExDateOfView = new Date( newYear, newMonth, 42 - firstDateCol, 0, 0, 0 );
// hide or unhide columns for days off
for(var day = 0; day < 7; day++) {

View File

@ -114,7 +114,7 @@ function printCalendar() {
//multiweek and month views call their display range something else
if(!displayStart) {
displayStart = gCalendarWindow.currentView.firstDateOfView;
displayEnd = gCalendarWindow.currentView.lastDateOfView;
displayEnd = gCalendarWindow.currentView.endExDateOfView;
}
ccalendar.getItems(filter, 0, jsDateToDateTime(displayStart), jsDateToDateTime(displayEnd), listener);
break;