rem:  document.getElementById( 'event-filter-menulist' ).setAttribute( "label", document.getElementById( 'event-filter-menulist' ).selectedItem.getAttribute( 'label' ) ); 
add: var value = document.getElementById( 'event-filter-menulist' ).value; document.getElementById( 'event-filter-menulist' ).selectedItem = document.getElementById( 'event-filter-'+value ); 
context: function calendarInit() {	// get the calendar event data source   gEventSource = new CalendarEventDataSource();      // get the Ical Library   gICalLib = gEventSource.getICalLib();      // set up the CalendarWindow instance      gCalendarWindow = new CalendarWindow( gEventSource );      //when you switch to a view, it takes care of refreshing the events, so that call is not needed.   gCalendarWindow.currentView.switchTo( gCalendarWindow.currentView );   // set up the unifinder      prepareCalendarUnifinder();   prepareCalendarToDoUnifinder();      update_date();   		checkForMailNews();   if( window.arguments && window.arguments[0].channel )   {      gCalendarWindow.calendarManager.checkCalendarURL( window.arguments[0].channel );   }   //a bit of a hack since the menulist doesn't remember the selected value        document.getElementById( 'event-filter-menulist' ).setAttribute( "label", document.getElementById( 'event-filter-menulist' ).selectedItem.getAttribute( 'label' ) );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a6427525226ee2ce13236c703a07aac6c0df0b62/calendar.js/buggy/calendar/resources/content/calendar.js