From e85eaf218acf71205067150b0bc33af9f0144541 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 16 Aug 2013 16:27:17 -0400 Subject: [PATCH] Update quickCopy.js and preferences_export.js for async getTranslators() --- .../zotero/preferences/preferences_export.js | 131 +++++++++--------- chrome/content/zotero/xpcom/quickCopy.js | 81 ++++++----- 2 files changed, 108 insertions(+), 104 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_export.js b/chrome/content/zotero/preferences/preferences_export.js index 4a4befbe5a..72e86a4595 100644 --- a/chrome/content/zotero/preferences/preferences_export.js +++ b/chrome/content/zotero/preferences/preferences_export.js @@ -45,8 +45,8 @@ Zotero_Preferences.Export = { // Initialize default format drop-down var format = Zotero.Prefs.get("export.quickCopy.setting"); var menulist = document.getElementById("zotero-quickCopy-menu"); - this.buildQuickCopyFormatDropDown(menulist, Zotero.QuickCopy.getContentType(format), format); menulist.setAttribute('preference', "pref-quickCopy-setting"); + this.buildQuickCopyFormatDropDown(menulist, Zotero.QuickCopy.getContentType(format), format); this.updateQuickCopyHTMLCheckbox(); if (!Zotero.isStandalone) { @@ -106,30 +106,30 @@ Zotero_Preferences.Export = { // add export formats to list var translation = new Zotero.Translate("export"); - var translators = translation.getTranslators(); - - for (var i=0; i