day view initially does not show items before current time

bug 289725, p=gekacheka, r=me. nptob


git-svn-id: svn://10.0.0.236/trunk@171932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mvl%exedo.nl 2005-04-10 18:03:41 +00:00
parent e3f63d06a7
commit 4f8d3b85db

View File

@ -112,10 +112,13 @@ DayView.prototype.refreshEvents = function()
this.removeElementsByAttribute("eventbox", "dayview");
// Figure out the start and end days for the week we're currently viewing
this.displayStartDate = new Date(this.calendarWindow.getSelectedDate());
this.displayEndDate = new Date(this.displayStartDate );
this.displayEndDate.setDate(this.displayEndDate.getDate() + 1);
this.displayEndDate.setSeconds(this.displayEndDate.getSeconds() - 1);
var selectedDateTime = this.calendarWindow.getSelectedDate();
this.displayStartDate = new Date(selectedDateTime.getFullYear(),
selectedDateTime.getMonth(),
selectedDateTime.getDate());
this.displayEndDate = new Date(this.displayStartDate);
this.displayEndDate.setDate(this.displayEndDate.getDate() + 1)
this.displayEndDate.setMilliseconds(this.displayEndDate.getMilliseconds() - 1);
// Save this off so we can get it again in onGetResult below
var eventController = this;