diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 95aba2946a..703bec1e45 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -851,7 +851,6 @@ Zotero.Schema = new function(){ var enumerator = Services.wm.getEnumerator("navigator:browser"); while (enumerator.hasMoreElements()) { let win = enumerator.getNext(); - 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 38cf08b5a6..3088a5547b 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -271,43 +271,14 @@ var ZoteroPane = new function() }; - /* - * Create the New Item (+) submenu with each item type - */ - 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 = []; - for (var i=0; i