rem: editReminder(); 
add:   if (reminderPopup.hasAttribute("last-value")) { editReminder(); } 
context: function commonUpdateReminder() {    // find relevant elements in the document    var reminderPopup = document.getElementById("item-alarm");    var reminderDetails = document.getElementById("reminder-details");    // if a custom reminder was selected, we show the appropriate    // dialog in order to allow the user to specify the details.    // the result will be placed in the 'reminder-custom-menuitem' tag.    if (reminderPopup.value == 'custom') {        // show the dialog.        editReminder();        // Now check if the resulting custom reminder is valid.        // possibly we receive an invalid reminder if the user cancels the        // dialog. In that case we revert to the previous selection of the        // reminder drop down.        if (!document.getElementById("reminder-custom-menuitem").reminder) {            reminderPopup.selectedIndex = gLastAlarmSelection;        }    }    // remember the current reminder drop down selection index.    gLastAlarmSelection = reminderPopup.selectedIndex;    updateReminderDetails();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/9d1428d8c69f934660c4623c06f109ff3d558f8b/calendar-dialog-utils.js/clean/calendar/base/content/calendar-dialog-utils.js