[Australis] Bug 963085: add header to Subscribe menu. r=Gijs

This commit is contained in:
Mike de Boer 2014-01-23 17:04:27 +01:00
parent bc1213d43f
commit 22fba76b1f
3 changed files with 10 additions and 3 deletions

View File

@ -34,8 +34,12 @@ var FeedHandler = {
return false;
}
while (container.firstChild)
container.removeChild(container.firstChild);
for (let i = container.childNodes.length - 1; i >= 0; --i) {
let node = container.childNodes[i];
if (isSubview && node.localName == "label")
continue;
container.removeChild(node);
}
if (!feeds || feeds.length <= 1)
return false;

View File

@ -123,7 +123,9 @@
<panelview id="PanelUI-socialapi" flex="1"/>
<panelview id="PanelUI-feeds" flex="1" oncommand="FeedHandler.subscribeToFeed(null, event);"></panelview>
<panelview id="PanelUI-feeds" flex="1" oncommand="FeedHandler.subscribeToFeed(null, event);">
<label value="&feedsMenu.label;" class="panel-subview-header"/>
</panelview>
<panelview id="PanelUI-helpView" flex="1">
<label value="&helpMenu.label;" class="panel-subview-header"/>

View File

@ -129,6 +129,7 @@ These should match what Safari and other Apple applications use on OS X Lion. --
<!ENTITY shareSelectCmd.accesskey "s">
<!ENTITY shareVideoCmd.label "Share This Video">
<!ENTITY shareVideoCmd.accesskey "s">
<!ENTITY feedsMenu.label "Subscribe">
<!ENTITY subscribeToPageMenupopup.label "Subscribe to This Page">
<!ENTITY subscribeToPageMenuitem.label "Subscribe to This Page…">
<!ENTITY addCurPagesCmd.label "Bookmark All Tabs…">