Skip to content

Commit

Permalink
Hide Actions menu in Standalone
Browse files Browse the repository at this point in the history
Leave it in place in Firefox for now for development
  • Loading branch information
dstillman committed Dec 29, 2016
1 parent e282a56 commit 82292ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions chrome/content/zotero/zoteroPane.js
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/zotero/zoteroPane.xul
Expand Up @@ -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"/>
Expand Down

0 comments on commit 82292ee

Please sign in to comment.