diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 3373f6d702..868d757221 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -380,7 +380,7 @@ Zotero.Schema = new function(){ var enumerator = wm.getEnumerator("navigator:browser"); while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); - win.ZoteroPane.buildItemTypeMenus(); + win.ZoteroPane.buildItemTypeSubMenu(); win.document.getElementById('zotero-editpane-item-box').buildItemTypeMenu(); } } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index e60044118d..7dc0f032ed 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -256,6 +256,10 @@ var ZoteroPane = new function() this.buildItemTypeSubMenu = function () { var moreMenu = document.getElementById('zotero-tb-add-more'); + while (moreMenu.hasChildNodes()) { + moreMenu.removeChild(moreMenu.firstChild); + } + // Sort by localized name var t = Zotero.ItemTypes.getSecondaryTypes(); var itemTypes = [];