зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8780159c96
Коммит
194ccd38c0
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче