rem: recurrencepage.updateAccept(); 
add: recurrencepage.updateRecurrenceControls(); 
context: function onTabSelected(){  var statusbarPanel = document.getElementById("statusbarpanel");  statusbarPanel.removeAttribute("label");    var tab = document.getElementById("dialog-tab");  var index = tab.selectedIndex;  var attendees = document.getElementById("attendees-page");  var main = document.getElementById("main-page");  if(index == 0) {    if(attendees.startDate) {      setElementValue("event-starttime",attendees.startDate.jsDate);      setElementValue("event-endtime",attendees.endDate.jsDate);    }  } else if(index == 1) {    // disable/enable recurrence options based on whether or not    // we're editing a task and whether or not this task has    // an associated startdate.    var item = window.calendarItem;    if (isToDo(item)) {      var entryDate = getElementValue("todo-has-entrydate", "checked") ?                       jsDateToDateTime(getElementValue("todo-entrydate")) : null;      if(entryDate) {        var kDefaultTimezone = calendarDefaultTimezone();        entryDate = entryDate.getInTimezone(kDefaultTimezone);      }      var recurrencepage = document.getElementById("recurrence-page");      recurrencepage.mStartDate = entryDate;      recurrencepage.disableOrEnable(item);      recurrencepage.updateAccept();    }  } else if(index == 2) {    var kDefaultTimezone = calendarDefaultTimezone();    var startDate = jsDateToDateTime(getElementValue("event-starttime"));    var endDate = jsDateToDateTime(getElementValue("event-endtime"));    startDate = startDate.getInTimezone(kDefaultTimezone);    endDate = endDate.getInTimezone(kDefaultTimezone);    var isAllDay = getElementValue("event-all-day", "checked");    if (isAllDay) {        startDate.isDate = true;        startDate.normalize();        endDate.isDate = true;        endDate.day += 1;        endDate.normalize();    }    attendees.setTimeRange(startDate,endDate);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/30256309659739de82043299d8fc82813c1093e7/sun-calendar-event-dialog.js/buggy/calendar/prototypes/wcap/sun-calendar-event-dialog.js