add: case "current": var SelectedDate = gCalendarWindow.getSelectedDate(); var EndDate = new Date( SelectedDate.getTime() + ( 1000 * 60 * 60 * 24 ) ); eventTable = gEventSource.getEventsForRange( SelectedDate, EndDate ); break; 
context: function getEventTable( ){   var Today = new Date();   //do this to allow all day events to show up all day long   var StartDate = new Date( Today.getFullYear(), Today.getMonth(), Today.getDate(), 0, 0, 0 );      gEventSource.onlyFutureEvents = false;      switch( document.getElementById( "event-filter-menulist" ).selectedItem.value )   {      case "all":         eventTable = gEventSource.getCurrentEvents();         break;         case "today":         var EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 ) - 1 );         eventTable = gEventSource.getEventsForRange( StartDate, EndDate );         break;      case "week":         var EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 8 ) );         eventTable = gEventSource.getEventsForRange( StartDate, EndDate );         break;      case "2weeks":         var EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 15 ) );         eventTable = gEventSource.getEventsForRange( StartDate, EndDate );         break;      case "month":         var EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 32 ) );         eventTable = gEventSource.getEventsForRange( StartDate, EndDate );         break;      case "future":         gEventSource.onlyFutureEvents = true;         eventTable = gEventSource.getCurrentEvents();         break;      default:          eventTable = new Array();         dump( "there's no case for "+document.getElementById( "event-filter-menulist" ).selectedItem.value );         break;   }   return( eventTable );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/9fd943dd8874f336fa7fdda9abb0f8a556f4b671/unifinder.js/buggy/calendar/resources/content/unifinder.js