Fixing bug 192949, problem with tooltips showing wrong end date for repeating events.

This commit is contained in:
mikep%oeone.com 2003-02-13 15:48:18 +00:00
Родитель d1407e3a26
Коммит 17a59fa686
1 изменённых файлов: 6 добавлений и 15 удалений

Просмотреть файл

@ -928,21 +928,12 @@ function getPreviewTextForRepeatingEvent( calendarEventDisplay )
DateHtml.appendChild( DateText );
HolderBox.appendChild( DateHtml );
if( calendarEventDisplay.recur == true )
{
DateHtml = document.createElement( "description" );
DateText = document.createTextNode( "This is a repeating event." );
DateHtml.appendChild( DateText );
HolderBox.appendChild( DateHtml );
}
else
{
DateHtml = document.createElement( "description" );
startDate = new Date( calendarEventDisplay.event.end.getTime() );
DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );
DateHtml.appendChild( DateText );
HolderBox.appendChild( DateHtml );
}
DateHtml = document.createElement( "description" );
startDate = new Date( calendarEventDisplay.displayEndDate );
DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );
DateHtml.appendChild( DateText );
HolderBox.appendChild( DateHtml );
if (calendarEventDisplay.event.description)
{