rem: gToDo.url = getFieldValue( "uri-field" ); 
add: gEvent.recurEnd.setTime( recurEndDate ); gEvent.recurEnd.hour = gEvent.start.hour; gEvent.recurEnd.minute = gEvent.start.minute; 
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 = document.getElementById( "due-date-picker" ).value;   gToDo.due.year = dueDate.getYear()+1900;   gToDo.due.month = dueDate.getMonth();   gToDo.due.day = dueDate.getDate();   gToDo.due.hour = 23;   gToDo.due.minute = 59;      var startDate = document.getElementById( "start-date-picker" ).value;   gToDo.start.year = startDate.getYear()+1900;   gToDo.start.month = startDate.getMonth();   gToDo.start.day = startDate.getDate();   gToDo.start.hour = 0;   gToDo.start.minute = 0;      gToDo.url = getFieldValue( "uri-field" );   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" );     gToDo.priority    = getFieldValue( "priority-levels", "value" );   var completed = getFieldValue( "completed-checkbox", "checked" );   gToDo.categories  = getFieldValue( "categories-field", "value" );   var percentcomplete = getFieldValue( "percent-complete-menulist" );   percentcomplete =  parseInt( percentcomplete );      if(percentcomplete > 100)      percentcomplete = 100;   else if(percentcomplete < 0)      percentcomplete = 0;         gToDo.percent = percentcomplete;      if( completed )   {      //get the time for the completed event      var completedDate = document.getElementById( "completed-date-picker" ).value;      gToDo.completed.year = completedDate.getYear() + 1900;      gToDo.completed.month = completedDate.getMonth();      gToDo.completed.day = completedDate.getDate();      gToDo.status = gToDo.ICAL_STATUS_COMPLETED;   }   else   {      gToDo.completed.clear();            var cancelled = getFieldValue( "cancelled-checkbox", "checked" );            if( cancelled )         gToDo.status = gToDo.ICAL_STATUS_CANCELLED;      else if (percentcomplete > 0)         gToDo.status = gToDo.ICAL_STATUS_INPROCESS;      else         gToDo.status = gToDo.ICAL_STATUS_NEEDSACTION;   }         if ( getFieldValue( "alarm-email-checkbox", "checked" ) )    {      gToDo.alarmEmailAddress = getFieldValue( "alarm-email-field", "value" );   }   else   {      gToDo.alarmEmailAddress = "";   }      var Server = getFieldValue( "server-field" );      // :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, Server );         // tell standard dialog stuff to close the dialog   return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d801d14a6bdaf22b7c6518182ed10af2b2d4226e/toDoDialog.js/buggy/calendar/resources/content/toDoDialog.js