rem: var nblines = nbmaxlines ; 
add: nblines = nbmaxlines ; 
context: function getPreviewTextForRepeatingEvent( calendarEventDisplay ){	showTooltip = true;         var HolderBox = document.createElement( "vbox" );  var textString ;       if (calendarEventDisplay.event.title)   {      var TitleHtml = document.createElement( "description" );      textString = gCalendarBundle.getFormattedString("tooltipTitleElement", [calendarEventDisplay.event.title]);            /*      if( calendarEventDisplay.event.recurUnits == "years" )      {         //count the number of years to figure out                  TitleText = TitleText+" "+getNumberOfRepeatTimes( calendarEventDisplay.event, false );      }*/      var TitleTextNode = document.createTextNode( textString );      TitleHtml.appendChild( TitleTextNode );      HolderBox.appendChild( TitleHtml );   }   var startDate = new Date( calendarEventDisplay.displayDate );   var endDate = new Date( calendarEventDisplay.displayEndDate );   var DateHtml = document.createElement( "description" );   if (!calendarEventDisplay.event.allDay) {     textString = gCalendarBundle.getFormattedString("tooltipEventStart", 						  ["",					           gCalendarWindow.dateFormater.getFormatedTime( startDate )]);        var DateText = document.createTextNode( textString );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   DateHtml = document.createElement( "description" );     textString = gCalendarBundle.getFormattedString("tooltipEventEnd", 						  ["",						   gCalendarWindow.dateFormater.getFormatedTime( endDate )]);     DateText = document.createTextNode( textString );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   }      if (calendarEventDisplay.event.location)   {      var LocationHtml = document.createElement( "description" );      textString = gCalendarBundle.getFormattedString("tooltipEventLocation", [calendarEventDisplay.event.location]);      var LocationText = document.createTextNode( textString );      LocationHtml.appendChild( LocationText );      HolderBox.appendChild( LocationHtml );   }   if (calendarEventDisplay.event.description)   {     textString = gCalendarBundle.getFormattedString("tooltipEventDescription", [calendarEventDisplay.event.description]);     var lines = textString.split("\n");     var nbmaxlines = 5 ;     var nblines = lines.length ;     if( nblines > nbmaxlines ) {       var nblines = nbmaxlines ;       lines[ nblines - 1 ] = "..." ;     }       for (var i = 0; i < nblines; i++) {       var DescriptionHtml = document.createElement("description");       var DescriptionText = document.createTextNode(lines[i]);       DescriptionHtml.appendChild(DescriptionText);       HolderBox.appendChild(DescriptionHtml);     }   }   return ( HolderBox );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/43af53d38378fb9a505110a2d97a8a77d2e30104/calendar.js/clean/calendar/resources/content/calendar.js