bug 353051 - Changes Dismiss All to loop in reverse so as to not miss any alarms. Patch by Stefan Sitter <ssitter@googlemail.com>, r1=lilmatt, r2=jminta

This commit is contained in:
mattwillis%gmail.com 2006-09-18 18:52:45 +00:00
Родитель 8780159c96
Коммит 194ccd38c0
1 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -76,16 +76,9 @@ function addAlarm(event)
function onDismissAll()
{
var now = Components.classes["@mozilla.org/calendar/datetime;1"]
.createInstance(Components.interfaces.calIDateTime);
now.jsDate = new Date();
now = now.getInTimezone("UTC");
var box = document.getElementById("alarmlist");
for each (kid in box.childNodes) {
if (!kid || !kid.item) {
continue;
}
onDismissWidget(kid);
for (var i = box.childNodes.length-1; i >= 0; i--) {
onDismissWidget(box.childNodes[i]);
}
return true;
}