From 9a35a1429867cf2f44f5890b76dc7d91eb2b56a7 Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Tue, 14 Jan 2003 16:23:11 +0000 Subject: [PATCH] Fixing problem with long descriptions being cut off, OEone bug 4948. --- calendar/resources/content/calendar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/resources/content/calendar.js b/calendar/resources/content/calendar.js index 3f6944e6dfa..eae036addfb 100644 --- a/calendar/resources/content/calendar.js +++ b/calendar/resources/content/calendar.js @@ -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 ); }