add: gToDo.due.hour = 23; gToDo.due.minute = 59;  var startDate = getDateTimeFieldValue( "start-date-text" ); gToDo.start.year = startDate.getYear()+1900; gToDo.start.month = startDate.getMonth(); gToDo.start.day = startDate.getDate(); gToDo.start.hour = 0; gToDo.start.minute = 0; 
context: function onOKCommand(){   // get values from the form and put them into the event      gToDo.title       = getFieldValue( "title-field" );   gToDo.description = getFieldValue( "description-field" );      var dueDate = getDateTimeFieldValue( "due-date-text" );   gToDo.due.year = dueDate.getYear()+1900;   gToDo.due.month = dueDate.getMonth();   gToDo.due.day = dueDate.getDate();      gToDo.privateEvent = getFieldValue( "private-checkbox", "checked" );      gToDo.alarm       = getFieldValue( "alarm-checkbox", "checked" );   gToDo.alarmLength = getFieldValue( "alarm-length-field" );   gToDo.alarmUnits  = getFieldValue( "alarm-length-units", "value" );     var completed = getFieldValue( "completed-checkbox", "checked" );   if( completed )   {      //get the time for the completed event      var completedDate = getDateTimeFieldValue( "completed-date-text" );      gToDo.completed.year = completedDate.getYear() + 1900;      gToDo.completed.month = completedDate.getMonth();      gToDo.completed.day = completedDate.getDate();   }   else      gToDo.completed.clear();   dump( "!!!-->in calendarEventDialog.js, alarmUnits is "+gToDo.alarmUnits );   if ( getFieldValue( "alarm-email-checkbox", "checked" ) )    {      gToDo.alarmEmailAddress = getFieldValue( "alarm-email-field", "value" );      dump( "!!!-->in calendarEventDialog.js, alarmEmailAddress is "+gToDo.alarmEmailAddress );   }   else   {      gToDo.alarmEmailAddress = "";   }      // :TODO: REALLY only do this if the alarm or start settings change.?   //if the end time is later than the start time... alert the user using text from the dtd.   // call caller's on OK function   gOnOkFunction( gToDo );         // tell standard dialog stuff to close the dialog   return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/078e219f40c51da30961325764b07fa2d215683e/toDoDialog.js/buggy/calendar/resources/content/toDoDialog.js