Bug 385896 - Reminder '1 week before' doesn't work, r=philipp

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@232452 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
michael.buettner%sun.com
2007-08-21 13:52:07 +00:00
parent 487a7b3d9e
commit 1fee7a96f6
2 changed files with 9 additions and 5 deletions

View File

@@ -871,16 +871,20 @@ function loadReminder(item) {
menuitem.getAttribute("relation") == relation) {
var unit = menuitem.getAttribute("unit");
var length = menuitem.getAttribute("length");
if (unit == "minutes" &&
item.alarmOffset.minutes == length) {
if (unit == "days" &&
item.alarmOffset.weeks * 7 == length) {
matchingItem = menuitem;
break;
} else if (unit == "days" &&
item.alarmOffset.days == length) {
matchingItem = menuitem;
break;
} else if (unit == "hours" &&
item.alarmOffset.hours == length) {
matchingItem = menuitem;
break;
} else if (unit == "days" &&
item.alarmOffset.days == length) {
} else if (unit == "minutes" &&
item.alarmOffset.minutes == length) {
matchingItem = menuitem;
break;
}

View File

@@ -767,7 +767,7 @@
relation="START"
unit="days"/>
<menuitem label="&event.reminder.1week.before.label;"
length="2"
length="7"
origin="1"
relation="START"
unit="days"/>