Fixing problem with long descriptions being cut off, OEone bug 4948.

This commit is contained in:
mikep%oeone.com 2003-01-14 16:23:11 +00:00
Родитель 1fdf60d476
Коммит 9a35a14298
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -960,7 +960,11 @@ function getPreviewTextForRepeatingEvent( calendarEventDisplay )
if (calendarEventDisplay.event.description)
{
var DescriptionHtml = document.createElement( "description" );
var DescriptionText = document.createTextNode( "Description: "+calendarEventDisplay.event.description );
var Description = calendarEventDisplay.event.description;
if( Description.length > 53 )
Description = Description.substr( 0, 50 )+"...";
var DescriptionText = document.createTextNode( "Description: "+Description );
DescriptionHtml.appendChild( DescriptionText );
HolderBox.appendChild( DescriptionHtml );
}