Fix restore of Quick Copy pref in preferences
This commit is contained in:
parent
49a90a2ae6
commit
20133fc8e8
|
@ -166,7 +166,6 @@ function updateStorageSettings(value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function unverifyStorageServer() {
|
function unverifyStorageServer() {
|
||||||
Zotero.debug("Clearing storage settings");
|
|
||||||
Zotero.Sync.Storage.clearSettingsCache();
|
Zotero.Sync.Storage.clearSettingsCache();
|
||||||
Zotero.Prefs.set('sync.storage.verified', false);
|
Zotero.Prefs.set('sync.storage.verified', false);
|
||||||
}
|
}
|
||||||
|
@ -351,7 +350,6 @@ function buildQuickCopyFormatDropDown(menulist, contentType, currentFormat) {
|
||||||
// Strip contentType from mode
|
// Strip contentType from mode
|
||||||
currentFormat = Zotero.QuickCopy.stripContentType(currentFormat);
|
currentFormat = Zotero.QuickCopy.stripContentType(currentFormat);
|
||||||
|
|
||||||
|
|
||||||
menulist.selectedItem = null;
|
menulist.selectedItem = null;
|
||||||
menulist.removeAllItems();
|
menulist.removeAllItems();
|
||||||
|
|
||||||
|
@ -373,7 +371,7 @@ function buildQuickCopyFormatDropDown(menulist, contentType, currentFormat) {
|
||||||
// add styles to list
|
// add styles to list
|
||||||
var styles = Zotero.Styles.getVisible();
|
var styles = Zotero.Styles.getVisible();
|
||||||
for each(var style in styles) {
|
for each(var style in styles) {
|
||||||
var baseVal = 'bibliography=' + i;
|
var baseVal = 'bibliography=' + style.styleID;
|
||||||
var val = 'bibliography' + (contentType == 'html' ? '/html' : '') + '=' + style.styleID;
|
var val = 'bibliography' + (contentType == 'html' ? '/html' : '') + '=' + style.styleID;
|
||||||
var itemNode = document.createElement("menuitem");
|
var itemNode = document.createElement("menuitem");
|
||||||
itemNode.setAttribute("value", val);
|
itemNode.setAttribute("value", val);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user