зеркало из https://github.com/mozilla/gecko-dev.git
Fixing bug 192949, problem with tooltips showing wrong end date for repeating events.
This commit is contained in:
Родитель
d1407e3a26
Коммит
17a59fa686
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче