зеркало из https://github.com/mozilla/gecko-dev.git
Fixing bug with events not going the length of the screen if there was an all day event on the same day.
This commit is contained in:
Родитель
b91e7edfce
Коммит
9b4a13f681
|
@ -164,7 +164,8 @@ DayView.prototype.refreshEvents = function( )
|
|||
thisCalendarEventDisplay.displayDate.getTime() < calendarEventDisplay.event.end.getTime() ) ||
|
||||
( calendarEventDisplay.displayDate >= thisCalendarEventDisplay.displayDate &&
|
||||
calendarEventDisplay.displayDate.getTime() < thisCalendarEventDisplay.event.end.getTime() ) ) &&
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id )
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id &&
|
||||
thisCalendarEventDisplay.event.allDay != true )
|
||||
{
|
||||
//get the spot that this event will go in.
|
||||
var ThisSpot = thisCalendarEventDisplay.CurrentSpot;
|
||||
|
|
|
@ -149,6 +149,8 @@ WeekView.prototype.refreshEvents = function( )
|
|||
|
||||
for ( i = 0; i < dayEventList.length; i++ )
|
||||
{
|
||||
var ThisSpot = 0;
|
||||
|
||||
var calendarEventDisplay = dayEventList[i];
|
||||
|
||||
//check to make sure that the event is not an all day event...
|
||||
|
@ -166,7 +168,8 @@ WeekView.prototype.refreshEvents = function( )
|
|||
thisCalendarEventDisplay.displayDate.getTime() < calendarEventDisplay.event.end.getTime() ) ||
|
||||
( calendarEventDisplay.displayDate >= thisCalendarEventDisplay.displayDate &&
|
||||
calendarEventDisplay.displayDate.getTime() < thisCalendarEventDisplay.event.end.getTime() ) ) &&
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id )
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id &&
|
||||
thisCalendarEventDisplay.event.allDay != true )
|
||||
{
|
||||
//get the spot that this event will go in.
|
||||
var ThisSpot = thisCalendarEventDisplay.CurrentSpot;
|
||||
|
@ -182,6 +185,7 @@ WeekView.prototype.refreshEvents = function( )
|
|||
}
|
||||
SortedOtherSpotArray = new Array();
|
||||
SortedOtherSpotArray = calendarEventDisplay.OtherSpotArray.sort( gCalendarWindow.compareNumbers);
|
||||
alert( SortedOtherSpotArray.length );
|
||||
LowestNumber = this.calendarWindow.getLowestElementNotInArray( SortedOtherSpotArray );
|
||||
|
||||
//this is the actual spot (0 -> n) that the event will go in on the day view.
|
||||
|
|
|
@ -164,7 +164,8 @@ DayView.prototype.refreshEvents = function( )
|
|||
thisCalendarEventDisplay.displayDate.getTime() < calendarEventDisplay.event.end.getTime() ) ||
|
||||
( calendarEventDisplay.displayDate >= thisCalendarEventDisplay.displayDate &&
|
||||
calendarEventDisplay.displayDate.getTime() < thisCalendarEventDisplay.event.end.getTime() ) ) &&
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id )
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id &&
|
||||
thisCalendarEventDisplay.event.allDay != true )
|
||||
{
|
||||
//get the spot that this event will go in.
|
||||
var ThisSpot = thisCalendarEventDisplay.CurrentSpot;
|
||||
|
|
|
@ -149,6 +149,8 @@ WeekView.prototype.refreshEvents = function( )
|
|||
|
||||
for ( i = 0; i < dayEventList.length; i++ )
|
||||
{
|
||||
var ThisSpot = 0;
|
||||
|
||||
var calendarEventDisplay = dayEventList[i];
|
||||
|
||||
//check to make sure that the event is not an all day event...
|
||||
|
@ -166,7 +168,8 @@ WeekView.prototype.refreshEvents = function( )
|
|||
thisCalendarEventDisplay.displayDate.getTime() < calendarEventDisplay.event.end.getTime() ) ||
|
||||
( calendarEventDisplay.displayDate >= thisCalendarEventDisplay.displayDate &&
|
||||
calendarEventDisplay.displayDate.getTime() < thisCalendarEventDisplay.event.end.getTime() ) ) &&
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id )
|
||||
calendarEventDisplay.event.id != thisCalendarEventDisplay.event.id &&
|
||||
thisCalendarEventDisplay.event.allDay != true )
|
||||
{
|
||||
//get the spot that this event will go in.
|
||||
var ThisSpot = thisCalendarEventDisplay.CurrentSpot;
|
||||
|
@ -182,6 +185,7 @@ WeekView.prototype.refreshEvents = function( )
|
|||
}
|
||||
SortedOtherSpotArray = new Array();
|
||||
SortedOtherSpotArray = calendarEventDisplay.OtherSpotArray.sort( gCalendarWindow.compareNumbers);
|
||||
alert( SortedOtherSpotArray.length );
|
||||
LowestNumber = this.calendarWindow.getLowestElementNotInArray( SortedOtherSpotArray );
|
||||
|
||||
//this is the actual spot (0 -> n) that the event will go in on the day view.
|
||||
|
|
Загрузка…
Ссылка в новой задаче