commit be47357e486dd55135974ddf7a138a4e2fb21ae4
parent 3ae7cc308ff2c9f4c8f843ae9269cd44d23f6efe
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 17 Sep 2008 04:51:07 +0000
Fix restore of Quick Copy pref in preferences
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js
@@ -166,7 +166,6 @@ function updateStorageSettings(value) {
}
function unverifyStorageServer() {
- Zotero.debug("Clearing storage settings");
Zotero.Sync.Storage.clearSettingsCache();
Zotero.Prefs.set('sync.storage.verified', false);
}
@@ -350,7 +349,6 @@ function buildQuickCopyFormatDropDown(menulist, contentType, currentFormat) {
}
// Strip contentType from mode
currentFormat = Zotero.QuickCopy.stripContentType(currentFormat);
-
menulist.selectedItem = null;
menulist.removeAllItems();
@@ -373,7 +371,7 @@ function buildQuickCopyFormatDropDown(menulist, contentType, currentFormat) {
// add styles to list
var styles = Zotero.Styles.getVisible();
for each(var style in styles) {
- var baseVal = 'bibliography=' + i;
+ var baseVal = 'bibliography=' + style.styleID;
var val = 'bibliography' + (contentType == 'html' ? '/html' : '') + '=' + style.styleID;
var itemNode = document.createElement("menuitem");
itemNode.setAttribute("value", val);