rem: var startTimePicker = document.getElementById( "start-time-button" ); var startTimeText = document.getElementById( "start-time-text" );  var endTimePicker = document.getElementById( "end-time-button" ); var endTimeText = document.getElementById( "end-time-text" );  if( allDayCheckBox.checked ) {   startTimeText.setAttribute( "disabled", "true" ); startTimeText.removeAttribute( "popup" ); startTimePicker.setAttribute( "disabled", "true" ); startTimePicker.removeAttribute( "popup" );  endTimeText.setAttribute( "disabled", "true" ); endTimeText.removeAttribute( "popup" ); endTimePicker.setAttribute( "disabled", "true" ); endTimePicker.removeAttribute( "popup" ); } else {   startTimeText.removeAttribute( "disabled" ); startTimeText.setAttribute( "popup", "oe-time-picker-popup" ); startTimePicker.removeAttribute( "disabled" ); startTimePicker.setAttribute( "popup", "oe-time-picker-popup" );  endTimeText.removeAttribute( "disabled" ); endTimeText.setAttribute( "popup", "oe-time-picker-popup" ); endTimePicker.removeAttribute( "disabled" ); endTimePicker.setAttribute( "popup", "oe-time-picker-popup" ); } 
add: var startTimePicker = document.getElementById( "start-datetime" ); var endTimePicker = document.getElementById( "end-datetime" );  startTimePicker.timepickerdisabled = editTimeDisabled; endTimePicker.timepickerdisabled = editTimeDisabled; 
context: function updateStartEndItemEnabled(){   var allDayCheckBox = document.getElementById( "all-day-event-checkbox" );      var startTimePicker = document.getElementById( "start-time-button" );   var startTimeText = document.getElementById( "start-time-text" );      var endTimePicker = document.getElementById( "end-time-button" );   var endTimeText = document.getElementById( "end-time-text" );      if( allDayCheckBox.checked )   {      // disable popups by removing the popup attribute            startTimeText.setAttribute( "disabled", "true" );      startTimeText.removeAttribute( "popup" );      startTimePicker.setAttribute( "disabled", "true" );      startTimePicker.removeAttribute( "popup" );            endTimeText.setAttribute( "disabled", "true" );      endTimeText.removeAttribute( "popup" );      endTimePicker.setAttribute( "disabled", "true" );      endTimePicker.removeAttribute( "popup" );   }   else   {      // enable popups by setting the popup attribute            startTimeText.removeAttribute( "disabled" );      startTimeText.setAttribute( "popup", "oe-time-picker-popup" );      startTimePicker.removeAttribute( "disabled" );      startTimePicker.setAttribute( "popup", "oe-time-picker-popup" );            endTimeText.removeAttribute( "disabled" );      endTimeText.setAttribute( "popup", "oe-time-picker-popup" );      endTimePicker.removeAttribute( "disabled" );      endTimePicker.setAttribute( "popup", "oe-time-picker-popup" );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5173b0d82499c909af83f592ebc55d0b9cdfa682/eventDialog.js/buggy/calendar/resources/content/eventDialog.js