mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
show location in the alarm dialog.
bug 220694, patch by robin.edrenius@gmail.com, r=mvl
This commit is contained in:
parent
15a23c7092
commit
29fb8d922e
@ -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;
|
||||
|
@ -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);"/>
|
||||
|
Loading…
Reference in New Issue
Block a user