rem: document.getElementById( "modify_command" ).setAttribute( "disabled", "true" );  document.getElementById("send_event_command").setAttribute("disabled", "true");  document.getElementById("print_command").setAttribute("disabled", "true"); 
context: CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){   if( this.selectedEvents.length > 0 )   {      document.getElementById( "cut_command" ).removeAttribute( "disabled" );            document.getElementById( "copy_command" ).removeAttribute( "disabled" );      document.getElementById( "delete_command" ).removeAttribute( "disabled" );      document.getElementById( "delete_command_no_confirm" ).removeAttribute( "disabled" );      if( this.selectedEvents.length == 1 )         document.getElementById( "modify_command" ).removeAttribute( "disabled" );	   else         document.getElementById( "modify_command" ).setAttribute( "disabled", "true" );      if (gMailAccounts)      {         document.getElementById("send_event_command").removeAttribute("disabled");      }      document.getElementById( "print_command" ).removeAttribute( "disabled" );   }   else   {      document.getElementById( "cut_command" ).setAttribute( "disabled", "true" );            document.getElementById( "copy_command" ).setAttribute( "disabled", "true" );      document.getElementById( "delete_command" ).setAttribute( "disabled", "true" );      document.getElementById( "delete_command_no_confirm" ).setAttribute( "disabled", "true" );      document.getElementById( "modify_command" ).setAttribute( "disabled", "true" );      document.getElementById("send_event_command").setAttribute("disabled", "true");      document.getElementById("print_command").setAttribute("disabled", "true");   }   for( var index in this.observerList )   {      var observer = this.observerList[ index ];            if( "onSelectionChanged" in observer )      {         observer.onSelectionChanged( this.selectedEvents );      }   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/27d08141e354a84e096ad5102845f4520d7f44a1/calendarSelection.js/buggy/calendar/resources/content/calendarSelection.js