add:  var snoozePref = getPrefSafe("calendar.alarms.defaultsnoozelength", 0); if (snoozePref > 0) { 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; } } } else { snoozePref = 0; } document.getAnonymousElementByAttribute(widget, "anonid", "alarm-widget-snooze-value").value = snoozePref;  
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));    widget.setAttribute("location", item.getProperty("LOCATION"));    widget.addEventListener("snooze", onSnoozeAlarm, false);    widget.addEventListener("dismiss", onDismissAlarm, false);    widget.item = item;    document.getElementById("alarmlist").appendChild(widget);    window.getAttention();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/734a028d81bd5184d5e1e0bd53ff4ddae7033741/calendar-alarm-dialog.js/buggy/calendar/base/content/calendar-alarm-dialog.js