From ef53fb9b67cf0c81ed0583b2c0cd57540110c1cc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 22 Jan 2007 02:05:41 +0000 Subject: [PATCH] Don't show "Remove selected item" for child items in collections Only show basic options in (disabled) no-selection item drop-drown --- chrome/content/zotero/overlay.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index ac5ee83462..756e74f2e9 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -1050,14 +1050,13 @@ var ZoteroPane = new function() hide.push(m.showInLibrary, m.sep1); } - disable.push(m.showInLibrary, m.addNote, m.attachSnapshot, m.attachLink, - m.deleteItem, m.deleteFromLibrary, m.exportItems, m.createBib, m.loadReport); - hide.push(m.toggleAbstract); - show.push(m.sep2); + disable.push(m.showInLibrary, m.deleteItem, m.deleteFromLibrary, + m.exportItems, m.createBib, m.loadReport); + hide.push(m.addNote, m.attachSnapshot, m.attachLink, m.toggleAbstract, m.sep2); } // Remove from collection - if (itemsView._itemGroup.isCollection()) + if (itemsView._itemGroup.isCollection() && !(item && item.getSource())) { menu.childNodes[m.deleteItem].setAttribute('label', Zotero.getString('pane.items.menu.remove' + multiple)); show.push(m.deleteItem);