rem: var endDate = getElementValue("end-datetime");   if (getElementValue("all-day-event-checkbox", "checked") ) endDate.setDate(endDate.getDate() + 1); else endDate.setDate(endDate.getDate() - 1);  updateStartEndItemEnabled(); updateOKButton(); 
add: updateDuration(); updateStartEndItemEnabled(); updateOKButton(); 
context: function commandAllDay(){    var endDate = getElementValue("end-datetime");    //user enddate == ical enddate - 1 (for allday events)    if (getElementValue("all-day-event-checkbox", "checked") )        endDate.setDate(endDate.getDate() + 1);    else        endDate.setDate(endDate.getDate() - 1);    updateStartEndItemEnabled();    updateOKButton();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/19fb5465cb2406e0fe390e385c2327a0e085041e/eventDialog.js/buggy/calendar/resources/content/eventDialog.js