зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
52dae2ffe1
Коммит
f9c16b9cee
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче