rem:  if (isToDo(window.calendarItem)) disableElement("item-recurrence");  
context: function onLoad(){    var args = window.arguments[0];    window.onAcceptCallback = args.onOk;    window.calendarItem = args.calendarEvent;    window.mode = args.mode;    window.recurrenceInfo = null;    if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) {        gReadOnlyMode = true;    }    /* add calendars to the calendar menulist */    var calendarList = document.getElementById("item-calendar");    var calendars = getCalendarManager().getCalendars({});    for (i in calendars) {        var calendar = calendars[i];        var menuitem = calendarList.appendItem(calendar.name, i);        menuitem.calendar = calendar;    }    loadDialog(window.calendarItem);    // figure out what the title of the dialog should be and set it    updateTitle();    // hide rows based on if this is an event or todo    updateStyle();    // update the accept button    updateAccept();    // disabling recurring todo until bug 328197 is fixed    if (isToDo(window.calendarItem))        disableElement("item-recurrence");    // update datetime pickers    updateDueDate();    updateEntryDate();    // update datetime pickers    updateAllDay();    // update recurrence button    updateRecurrence();    // update our size!    window.sizeToContent();    document.getElementById("item-title").focus();    opener.setCursor("auto");    self.focus();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0dedec594c5915297636afa6ac0bee2e82548161/calendar-event-dialog.js/buggy/calendar/base/content/calendar-event-dialog.js