show location in the alarm dialog.

bug 220694, patch by robin.edrenius@gmail.com, r=mvl
This commit is contained in:
mvl%exedo.nl 2005-11-10 21:52:06 +00:00
parent 15a23c7092
commit 29fb8d922e
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ function addAlarm(event)
var alarmWidget = document.createElement("calendar-alarm-widget");
alarmWidget.setAttribute("title", event.title);
alarmWidget.setAttribute("time", event.alarmTime.toString());
alarmWidget.setAttribute("location", event.getProperty("LOCATION"));
alarmWidget.addEventListener("snooze", onSnoozeAlarm, false);
alarmWidget.addEventListener("dismiss", onDismissAlarm, false);
alarmWidget.item = event;

View File

@ -54,6 +54,7 @@
<xul:vbox pack="start" flex="1">
<xul:label xbl:inherits="value=title"/>
<xul:label xbl:inherits="value=time"/>
<xul:label xbl:inherits="value=location"/>
</xul:vbox>
<xul:vbox pack="start">
<xul:button label="&calendar.alarm.snooze.label;" oncommand="var event = document.createEvent('Events'); event.initEvent('snooze', false, false); this.dispatchEvent(event);"/>