From 82292eef77701c5f6eb19ec4b65aee0e7ebdbf30 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 27 Dec 2016 12:38:46 -0500 Subject: [PATCH] Hide Actions menu in Standalone Leave it in place in Firefox for now for development --- chrome/content/zotero/zoteroPane.js | 6 ++++++ chrome/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 index 6bea5d3487..8abd3c8c14 100644 --- 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 index 829d931568..f412adb73b 100644 --- a/chrome/content/zotero/zoteroPane.xul +++ b/chrome/content/zotero/zoteroPane.xul @@ -123,8 +123,8 @@ - - +