From 5fbd569fdf8baafc9fa46669ef4015a3d46d9214 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 10 May 2013 14:49:29 -0400 Subject: [PATCH] Fix refreshing of Quick Copy list when resetting styles --- .../content/zotero/preferences/preferences_advanced.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js index 3fb5489deb..8ade41a56e 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.js +++ b/chrome/content/zotero/preferences/preferences_advanced.js @@ -129,7 +129,9 @@ Zotero_Preferences.Advanced = { if (index == 0) { Zotero.Schema.resetTranslatorsAndStyles(function (xmlhttp, updated) { - this.populateQuickCopyList(); + if (Zotero_Preferences.Export) { + Zotero_Preferences.Export.populateQuickCopyList(); + } }); } }, @@ -170,9 +172,10 @@ Zotero_Preferences.Advanced = { null, null, null, {}); if (index == 0) { - var self = this; Zotero.Schema.resetStyles(function (xmlhttp, updated) { - self.populateQuickCopyList(); + if (Zotero_Preferences.Export) { + Zotero_Preferences.Export.populateQuickCopyList(); + } }); } },