Hide Actions menu in Standalone

Leave it in place in Firefox for now for development
This commit is contained in:
Dan Stillman 2016-12-27 12:38:46 -05:00
parent e282a5643f
commit 82292eef77
2 changed files with 8 additions and 2 deletions

View file

@ -82,6 +82,12 @@ var ZoteroPane = new function()
window.document.documentElement.setAttribute('sizemode', 'normal');
}
// For now, keep actions menu in the DOM and show it in Firefox for development
if (!Zotero.isStandalone) {
document.getElementById('zotero-tb-actions-menu-separator').hidden = false;
document.getElementById('zotero-tb-actions-menu').hidden = false;
}
// Set "Report Errors..." label via property rather than DTD entity,
// since we need to reference it in script elsewhere
document.getElementById('zotero-tb-actions-reportErrors').setAttribute('label',

View file

@ -123,8 +123,8 @@
</menu>
</menupopup>
</toolbarbutton>
<spacer flex="1"/>
<toolbarbutton id="zotero-tb-actions-menu" class="zotero-tb-button" tooltiptext="&zotero.toolbar.actions.label;" type="menu">
<spacer id="zotero-tb-actions-menu-separator" flex="1" hidden="true"/>
<toolbarbutton id="zotero-tb-actions-menu" class="zotero-tb-button" tooltiptext="&zotero.toolbar.actions.label;" type="menu" hidden="true">
<menupopup id="zotero-tb-actions-popup">
<menuitem id="zotero-tb-actions-import" label="&zotero.toolbar.import.label;" command="cmd_zotero_import"/>
<menuitem id="zotero-tb-actions-import-clipboard" label="&zotero.toolbar.importFromClipboard;" command="cmd_zotero_importFromClipboard"/>