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:
shaver%mozilla.org 2005-06-22 16:59:03 +00:00
parent 79dea12072
commit c315445ee3

View File

@ -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;