rem: var DateHtml = document.createElement( "description" ); var startDate = new Date( calendarEventDisplay.event.end.getTime() ); var DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) ); 
add: DateHtml = document.createElement( "description" ); startDate = new Date( calendarEventDisplay.event.end.getTime() ); DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) ); 
context: function getPreviewTextForRepeatingEvent( calendarEventDisplay ){	showTooltip = true;         var HolderBox = document.createElement( "vbox" );       if (calendarEventDisplay.event.title)   {      var TitleHtml = document.createElement( "description" );      var TitleText = "Title: "+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( TitleText );      TitleHtml.appendChild( TitleTextNode );      HolderBox.appendChild( TitleHtml );   }   var DateHtml = document.createElement( "description" );   var startDate = new Date( calendarEventDisplay.displayDate );   var DateText = document.createTextNode( "Start: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   if( calendarEventDisplay.recur == true )   {      var DateHtml = document.createElement( "description" );      var DateText = document.createTextNode( "This is a repeating event." );      DateHtml.appendChild( DateText );      HolderBox.appendChild( DateHtml );   }   else   {      var DateHtml = document.createElement( "description" );      var startDate = new Date( calendarEventDisplay.event.end.getTime() );      var DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );      DateHtml.appendChild( DateText );      HolderBox.appendChild( DateHtml );   }   if (calendarEventDisplay.event.description)   {      var DescriptionHtml = document.createElement( "description" );      var DescriptionText = document.createTextNode( "Description: "+calendarEventDisplay.event.description );      DescriptionHtml.appendChild( DescriptionText );      HolderBox.appendChild( DescriptionHtml );   }   return ( HolderBox );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/76b784fca4394a565ab5193c3d63c72fbff3d57a/calendar.js/buggy/calendar/resources/content/calendar.js