commit 5fbd569fdf8baafc9fa46669ef4015a3d46d9214
parent 6b61795d96ce42d93a704eb6a248c7f42a7cac71
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 10 May 2013 14:49:29 -0400
Fix refreshing of Quick Copy list when resetting styles
Diffstat:
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
@@ -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();
+ }
});
}
},