rem: DateHtml = document.createElement( "description" ); 
add: DateHtml = document.createElement( "description" ); 
context: function getPreviewText( calendarEvent ){	var HolderBox = document.createElement( "vbox" );  var textString ;   if (calendarEvent.title)   {      var TitleHtml = document.createElement( "description" );      textString = gCalendarBundle.getFormattedString("tooltipTitleElement", [calendarEvent.title]);      var TitleText = document.createTextNode( textString );      TitleHtml.appendChild( TitleText );      HolderBox.appendChild( TitleHtml );   }   var startDate = new Date( calendarEvent.start.getTime() );   var endDate = new Date( calendarEvent.end.getTime() );   var diff = DateUtils.getDifferenceInDays(startDate, endDate) ;   var DateHtml = document.createElement( "description" );   if (calendarEvent.allDay) {     if ( diff > 1 )  {       textString = gCalendarBundle.getFormattedString("tooltipEventStart", 						   [gCalendarWindow.dateFormater.getFormatedDate( startDate ),						    ""]);       var DateText = document.createTextNode( textString );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );       DateHtml = document.createElement( "description" );       textString = gCalendarBundle.getFormattedString("tooltipEventEnd", 						   [gCalendarWindow.dateFormater.getFormatedDate( endDate ),						    ""]);     }     else {       textString = gCalendarBundle.getFormattedString("tooltipAlldayEventDate", 						   [gCalendarWindow.dateFormater.getFormatedDate( startDate ),						    ""]);     }   }   else {     textString = gCalendarBundle.getFormattedString("tooltipEventStart", 						  [gCalendarWindow.dateFormater.getFormatedDate( startDate ),					           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.getFormatedDate( endDate ),						   gCalendarWindow.dateFormater.getFormatedTime( endDate )]);   }   DateText = document.createTextNode( textString );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   if (calendarEvent.location)   {      var LocationHtml = document.createElement( "description" );      textString = gCalendarBundle.getFormattedString("tooltipEventLocation", [calendarEvent.location]);      var LocationText = document.createTextNode( textString );      LocationHtml.appendChild( LocationText );      HolderBox.appendChild( LocationHtml );   }   if (calendarEvent.description)   {      textString = gCalendarBundle.getFormattedString("tooltipEventDescription", [calendarEvent.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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/43af53d38378fb9a505110a2d97a8a77d2e30104/unifinder.js/clean/calendar/resources/content/unifinder.js