rem:  if( repeatMenu.selectedItem ) { switch( repeatMenu.selectedItem.value ) { case "days": weekExtensions.setAttribute( "collapsed", "true" ); monthExtensions.setAttribute( "collapsed", "true" ); break;  case "weeks": weekExtensions.removeAttribute( "collapsed" ); monthExtensions.setAttribute( "collapsed", "true" ); updateAdvancedWeekRepeat(); break;  case "months": weekExtensions.setAttribute( "collapsed", "true" ); monthExtensions.removeAttribute( "collapsed" );  updateAdvancedRepeatDayOfMonth(); break;  case "years": weekExtensions.setAttribute( "collapsed", "true" ); monthExtensions.setAttribute( "collapsed", "true" ); break;  } sizeToContent(); }  
add:  if( repeatMenu.selectedItem ) { switch( repeatMenu.selectedItem.value ) { case "days": hideElement("repeat-extensions-week"); hideElement("repeat-extensions-month"); break; case "weeks": showElement("repeat-extensions-week"); hideElement("repeat-extensions-month"); updateAdvancedWeekRepeat(); break; case "months": hideElement("repeat-extensions-week"); showElement("repeat-extensions-month");  updateAdvancedRepeatDayOfMonth(); break; case "years": hideElement("repeat-extensions-week"); hideElement("repeat-extensions-month"); break; } sizeToContent(); } 
context: function updateRepeatUnitExtensions( ){   var repeatMenu = document.getElementById( "repeat-length-units" );   var weekExtensions = document.getElementById( "repeat-extenstions-week" );   var monthExtensions = document.getElementById( "repeat-extenstions-month" );   //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST   if( repeatMenu.selectedItem )   {      switch( repeatMenu.selectedItem.value )      {           case "days":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.setAttribute( "collapsed", "true" );           break;                      case "weeks":               weekExtensions.removeAttribute( "collapsed" );               monthExtensions.setAttribute( "collapsed", "true" );               updateAdvancedWeekRepeat();           break;                      case "months":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.removeAttribute( "collapsed" );               //the following line causes resize problems after turning on repeating events               updateAdvancedRepeatDayOfMonth();           break;                      case "years":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.setAttribute( "collapsed", "true" );           break;             }      sizeToContent();     }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js