Bug 989009 - should theme live bookmark submenu items correctly, r=mak

--HG--
extra : rebase_source : 2f15dd69b48e0e5b81a84f74224c8c3dcc5c66ec
This commit is contained in:
Gijs Kruitbosch 2014-03-29 13:17:58 +00:00
parent 41f2ee45ee
commit 97b37465c9

View File

@ -394,6 +394,9 @@ PlacesViewBase.prototype = {
// Add "Open (Feed Name)" menuitem.
aPopup._siteURIMenuitem = document.createElement("menuitem");
aPopup._siteURIMenuitem.className = "openlivemarksite-menuitem";
if (typeof this.options.extraClasses.entry == "string") {
aPopup._siteURIMenuitem.classList.add(this.options.extraClasses.entry);
}
aPopup._siteURIMenuitem.setAttribute("targetURI", siteUrl);
aPopup._siteURIMenuitem.setAttribute("oncommand",
"openUILink(this.getAttribute('targetURI'), event);");
@ -429,6 +432,9 @@ PlacesViewBase.prototype = {
// Create the status menuitem and cache it in the popup object.
statusMenuitem = document.createElement("menuitem");
statusMenuitem.className = "livemarkstatus-menuitem";
if (typeof this.options.extraClasses.entry == "string") {
statusMenuitem.classList.add(this.options.extraClasses.entry);
}
statusMenuitem.setAttribute("disabled", true);
aPopup._statusMenuitem = statusMenuitem;
}