www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 82292eef77701c5f6eb19ec4b65aee0e7ebdbf30
parent e282a5643f86047e57272d09a3382c8af5ae458f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 27 Dec 2016 12:38:46 -0500

Hide Actions menu in Standalone

Leave it in place in Firefox for now for development

Diffstat:
Mchrome/content/zotero/zoteroPane.js | 6++++++
Mchrome/content/zotero/zoteroPane.xul | 4++--
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -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', diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul @@ -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"/>