mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 298357: set the item's calendar's URI as an attribute so that we can
style the bejeezus out of it based on the user's calendar prefs. r=vlad.
This commit is contained in:
parent
79dea12072
commit
c315445ee3
@ -79,6 +79,8 @@
|
||||
if (label.firstChild)
|
||||
label.removeChild(label.firstChild);
|
||||
label.appendChild(document.createTextNode(str));
|
||||
this.setAttribute("class", "calendar-item");
|
||||
this.setAttribute("item-calendar", val.calendar.uri.spec);
|
||||
|
||||
return val;
|
||||
]]></setter>
|
||||
@ -264,6 +266,9 @@
|
||||
before = this.mItemData[j].box;
|
||||
|
||||
var box = createXULElement("calendar-month-day-box-item");
|
||||
box.setAttribute("class", "calendar-item");
|
||||
box.setAttribute("item-calendar", itd.item.calendar.uri.spec);
|
||||
|
||||
this.dayitems.insertBefore(box, before);
|
||||
|
||||
box.item = itd.item;
|
||||
|
Loading…
Reference in New Issue
Block a user