rem: var snoozePref = getPrefSafe("calendar.alarms.defaultsnoozelength", 0); if (snoozePref <= 0) { snoozePref = 5; 
add: setupTitle();  if (alarmRichlist.selectedIndex < 0) { alarmRichlist.selectedIndex = 0; 
context: function addWidgetFor(item) {    var widget = document.createElement("calendar-alarm-widget");    widget.setAttribute("title", item.title);    var time = item.startDate || item.entryDate || item.dueDate;    var dateFormatter = Components.classes["@mozilla.org/calendar/datetime-formatter;1"]                                  .getService(Components.interfaces.calIDateTimeFormatter);    widget.setAttribute("time", dateFormatter.formatDateTime(time.getInTimezone(calendarDefaultTimezone())));    widget.setAttribute("location", item.getProperty("LOCATION"));    widget.addEventListener("snooze", onSnoozeAlarm, false);    widget.addEventListener("dismiss", onDismissAlarm, false);    widget.item = item;    document.getElementById("alarmlist").appendChild(widget);    var snoozePref = getPrefSafe("calendar.alarms.defaultsnoozelength", 0);    if (snoozePref <= 0) {        snoozePref = 5;    }    if ((snoozePref % 60) == 0) {        snoozePref = snoozePref / 60;        if ((snoozePref % 24) == 0) {            snoozePref = snoozePref / 24;            document.getAnonymousElementByAttribute(widget, "anonid", "alarm-widget-snooze-unit").selectedIndex = 2;        } else {            document.getAnonymousElementByAttribute(widget, "anonid", "alarm-widget-snooze-unit").selectedIndex = 1;        }    }    document.getAnonymousElementByAttribute(widget, "anonid", "alarm-widget-snooze-value").value = snoozePref;    window.getAttention();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/14f01fb0c86c2a2ef4e2a1baaf2530baba8e4a91/calendar-alarm-dialog.js/clean/calendar/base/content/calendar-alarm-dialog.js