From f4ac1c0b55a369915da46d2fe1e27aeff944f872 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 17 Jan 2011 17:14:58 +0000 Subject: [PATCH] don't show proxy options in standalone --- chrome.manifest | 2 + .../content/zotero/preferences/preferences.js | 2 + .../zotero/preferences/preferences.xul | 46 ---------- .../preferences/preferences_firefox.xul | 90 +++++++++++++++++++ chrome/content/zotero/xpcom/proxy.js | 2 +- 5 files changed, 95 insertions(+), 47 deletions(-) create mode 100644 chrome/content/zotero/preferences/preferences_firefox.xul diff --git a/chrome.manifest b/chrome.manifest index f1b3279a8e..04f2789245 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -47,6 +47,8 @@ skin zotero default chrome/skin/default/zotero/ overlay chrome://browser/content/browser.xul chrome://zotero/content/statusBarOverlay.xul appversion<4.0 overlay chrome://browser/content/browser.xul chrome://zotero/content/overlay.xul overlay chrome://browser/content/browser.xul chrome://zotero/content/itemPane.xul +overlay chrome://zotero/content/preferences/preferences.xul chrome://zotero/content/preferences/preferences_firefox.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} +overlay chrome://zotero/content/preferences/preferences.xul#cite chrome://zotero/content/preferences/preferences_firefox.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} style chrome://browser/content/browser.xul chrome://zotero/skin/zotero.css style chrome://global/content/customizeToolbar.xul chrome://zotero/skin/zotero.css diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index f44b173b04..02063bdb91 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -1733,6 +1733,8 @@ function deleteProxy() { * Refreshes the proxy pane */ function refreshProxyList() { + if(!document.getElementById("zotero-prefpane-proxies")) return; + // get and sort proxies proxies = Zotero.Proxies.proxies.slice(); for(var i=0; i - - - &zotero.preferences.proxies.desc_before_link; - - - - - - - - - - - - - - - - - - - - - - - - -