From d4da080967d9a96270baf9b44b7bca9e35b8ca1f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 15 Oct 2010 05:36:37 +0000 Subject: [PATCH] Styles->Cite section in Zotero preferences and split to "Word Processors" and "Styles" tabs also change "Shortcut Keys" to just "Shortcuts" (since the icon is a key anyway) --- .../content/zotero/preferences/preferences.js | 10 +++ .../zotero/preferences/preferences.xul | 80 +++++++++++-------- chrome/locale/en-US/zotero/preferences.dtd | 17 ++-- 3 files changed, 67 insertions(+), 40 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 605ad5622..934fb8cbd 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -46,6 +46,7 @@ function init() } updateStorageSettings(null, null, true); + updateWordProcessorInstructions(); refreshStylesList(); refreshProxyList(); populateQuickCopyList(); @@ -1813,3 +1814,12 @@ function updateProxyPrefs() { document.getElementById('zotero-proxies-disableByDomain-checkbox').disabled = document.getElementById('zotero-proxies-disableByDomain-textbox').disabled = !transparent; } + +/** + * Determines if there are word processors, and if not, enables no word processor message + */ +function updateWordProcessorInstructions() { + if(document.getElementById("wordProcessors").childNodes.length == 2) { + document.getElementById("wordProcessors-noWordProcessorPluginsInstalled").hidden = undefined; + } +} \ No newline at end of file diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index a66ce091f..a6ea68900 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -564,45 +564,59 @@ To add a new preference: - - - - - - - - - - - - - -