From 20133fc8e8dea4579e251d4e062f658dd62717aa Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 17 Sep 2008 04:51:07 +0000 Subject: [PATCH] Fix restore of Quick Copy pref in preferences --- chrome/content/zotero/preferences/preferences.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index fae66ff92..330386613 100644 --- 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);