From 6d265f448f94307d22b58a1305c64af006f5278f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 19 Jul 2017 03:38:18 -0400 Subject: [PATCH] Restore site-specific Quick Copy settings Using the last URL passed by a connector Closes https://github.com/zotero/zotero-connectors/issues/145 --- .../zotero/preferences/preferences_export.js | 4 +- .../zotero/preferences/preferences_export.xul | 25 +++++++- .../preferences_export_firefox.xul | 62 ------------------- .../preferences/quickCopySiteEditor.xul | 48 +++++++------- chrome/content/zotero/xpcom/itemTreeView.js | 6 +- chrome/content/zotero/xpcom/quickCopy.js | 54 ++++++++-------- .../content/zotero/xpcom/server_connector.js | 19 +++++- chrome/content/zotero/zoteroPane.js | 3 +- 8 files changed, 100 insertions(+), 121 deletions(-) delete mode 100644 chrome/content/zotero/preferences/preferences_export_firefox.xul diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js index 2d7cb6d8b..0c5d226b1 100644 --- a/chrome/content/zotero/preferences/preferences_export.js +++ b/chrome/content/zotero/preferences/preferences_export.js @@ -66,9 +66,7 @@ Zotero_Preferences.Export = { this._lastSelectedLocale = Zotero.Prefs.get("export.quickCopy.locale"); this.updateQuickCopyUI(); - if (!Zotero.isStandalone) { - yield this.refreshQuickCopySiteList(); - } + yield this.refreshQuickCopySiteList(); }), diff --git a/chrome/content/zotero/preferences/preferences_export.xul b/chrome/content/zotero/preferences/preferences_export.xul index 1e518e651..4a3b93802 100644 --- a/chrome/content/zotero/preferences/preferences_export.xul +++ b/chrome/content/zotero/preferences/preferences_export.xul @@ -64,7 +64,30 @@ oncommand="Zotero_Preferences.Export.buildQuickCopyFormatDropDown(document.getElementById('zotero-quickCopy-menu'), this.checked ? 'html' : '');"/> - + + +