www

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

commit d13af7ca3eb497030af9da750bd1f49e5fbb5818
parent 71c63c6a7455b34cd14662a0dbe4166599b77936
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 22 Feb 2012 04:40:11 -0500

Don't show site-specific Quick Copy in Standalone

Diffstat:
Mchrome/content/zotero/preferences/preferences.js | 4+++-
Mchrome/content/zotero/preferences/preferences.xul | 23+++--------------------
Mchrome/content/zotero/preferences/preferences_firefox.xul | 29+++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 21 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js @@ -588,7 +588,9 @@ function populateQuickCopyList() { menulist.setAttribute('preference', "pref-quickCopy-setting"); updateQuickCopyHTMLCheckbox(); - refreshQuickCopySiteList(); + if (!Zotero.isStandalone) { + refreshQuickCopySiteList(); + } } diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul @@ -503,7 +503,7 @@ To add a new preference: <preference id="pref-quickCopy-dragLimit" name="extensions.zotero.export.quickCopy.dragLimit" type="int"/> </preferences> - <groupbox> + <groupbox id="zotero-prefpane-export-groupbox"> <caption label="&zotero.preferences.quickCopy.caption;"/> <label id="quickCopy-instructions"/> @@ -513,29 +513,12 @@ To add a new preference: <label value="&zotero.preferences.quickCopy.defaultOutputFormat;" control="quickCopy-menu"/> <menulist id="zotero-quickCopy-menu"/> - <separator/> + <separator class="thin"/> <checkbox id="zotero-quickCopy-copyAsHTML" label="&zotero.preferences.quickCopy.copyAsHTML;" oncommand="buildQuickCopyFormatDropDown(document.getElementById('zotero-quickCopy-menu'), this.checked ? 'html' : '');"/> - <separator/> - - <label value="&zotero.preferences.quickCopy.siteEditor.setings;" control="quickCopy-siteSettings"/> - <tree flex="1" id="quickCopy-siteSettings" hidecolumnpicker="true" rows="6" seltype="single" - ondblclick="showQuickCopySiteEditor(this.currentIndex)" - onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedQuickCopySite(); }"> - <treecols> - <treecol id="quickCopy-urlColumn" label="&zotero.preferences.quickCopy.siteEditor.domainPath;" flex="1"/> - <treecol id="quickCopy-formatColumn" label="&zotero.preferences.quickCopy.siteEditor.outputFormat;" flex="2"/> - <treecol id="quickCopy-copyAsHTML" label="HTML"/> - </treecols> - <treechildren id="quickCopy-siteSettings-rows"/> - </tree> - <separator class="thin"/> - <hbox pack="end"> - <button label="-" onclick="deleteSelectedQuickCopySite()"/> - <button label="+" onclick="showQuickCopySiteEditor()"/> - </hbox> + <vbox id="zotero-prefpane-export-siteSettings"/> <hbox align="center"> <label value="&zotero.preferences.quickCopy.dragLimit;"/> diff --git a/chrome/content/zotero/preferences/preferences_firefox.xul b/chrome/content/zotero/preferences/preferences_firefox.xul @@ -76,6 +76,35 @@ To add a new preference: </grid> </groupbox> </prefpane> + + <prefpane id="zotero-prefpane-export" + label="&zotero.preferences.prefpane.export;" + image="chrome://zotero/skin/prefs-export.png" + helpTopic="export"> + <groupbox id="zotero-prefpane-export-groupbox"> + <vbox id="zotero-prefpane-export-siteSettings"> + <separator/> + + <label value="&zotero.preferences.quickCopy.siteEditor.setings;" control="quickCopy-siteSettings"/> + <tree flex="1" id="quickCopy-siteSettings" hidecolumnpicker="true" rows="6" seltype="single" + ondblclick="showQuickCopySiteEditor(this.currentIndex)" + onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedQuickCopySite(); }"> + <treecols> + <treecol id="quickCopy-urlColumn" label="&zotero.preferences.quickCopy.siteEditor.domainPath;" flex="1"/> + <treecol id="quickCopy-formatColumn" label="&zotero.preferences.quickCopy.siteEditor.outputFormat;" flex="2"/> + <treecol id="quickCopy-copyAsHTML" label="HTML"/> + </treecols> + <treechildren id="quickCopy-siteSettings-rows"/> + </tree> + <separator class="thin"/> + <hbox pack="end"> + <button label="-" onclick="deleteSelectedQuickCopySite()"/> + <button label="+" onclick="showQuickCopySiteEditor()"/> + </hbox> + </vbox> + </groupbox> + </prefpane> + <prefpane id="zotero-prefpane-proxies" label="&zotero.preferences.prefpane.proxies;" image="chrome://zotero/skin/prefs-proxies.png" position="6"