diff --git a/calendar/base/content/calendar-alarm-dialog.js b/calendar/base/content/calendar-alarm-dialog.js index 59689c576f1..57a10852acb 100644 --- a/calendar/base/content/calendar-alarm-dialog.js +++ b/calendar/base/content/calendar-alarm-dialog.js @@ -19,6 +19,7 @@ * * Contributor(s): * Stuart Parmenter + * Philipp Kewisch * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -99,6 +100,9 @@ function onSnoozeAlarm(event) alarmService.snoozeEvent(alarmWidget.item, duration); + alarmWidget.removeEventListener("snooze", onSnoozeAlarm, false); + alarmWidget.removeEventListener("dismiss", onDismissAlarm, false); + var parent = alarmWidget.parentNode; parent.removeChild(alarmWidget); if (!parent.hasChildNodes()) { @@ -131,6 +135,9 @@ function onDismissWidget(alarmWidget) { } item.calendar.modifyItem(item, alarmWidget.item, null); + alarmWidget.removeEventListener("snooze", onSnoozeAlarm, false); + alarmWidget.removeEventListener("dismiss", onDismissAlarm, false); + var parent = alarmWidget.parentNode; parent.removeChild(alarmWidget); @@ -140,4 +147,3 @@ function onDismissWidget(alarmWidget) { } } - diff --git a/calendar/base/content/calendar-multiday-view.xml b/calendar/base/content/calendar-multiday-view.xml index 433d0262c39..f0fe60005a5 100644 --- a/calendar/base/content/calendar-multiday-view.xml +++ b/calendar/base/content/calendar-multiday-view.xml @@ -1912,8 +1912,11 @@ ]]>