From 1c560eb94c7e4c4c910bbc43f5f78425a2bb2c79 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 2 Aug 2011 03:34:32 +0000 Subject: [PATCH] Fix file editing in Search/Unfiled/Duplicates --- chrome/content/zotero/xpcom/collectionTreeView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index 35d6bb8a1d..6e8c1428bf 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1168,7 +1168,7 @@ Zotero.CollectionTreeView.prototype.canDrop = function(row, orient, dragData) for each(var item in items) { // Can only drag top-level items if (!item.isTopLevelItem()) { - return false + return false; } if (itemGroup.isWithinGroup() && item.isAttachment()) { @@ -1833,7 +1833,7 @@ Zotero.ItemGroup.prototype.__defineGetter__('filesEditable', function () { if (this.isGroup()) { return this.ref.filesEditable; } - if (this.isCollection()) { + if (this.isCollection() || this.isSearch() || this.isDuplicates() || this.isUnfiled()) { var type = Zotero.Libraries.getType(libraryID); if (type == 'group') { var groupID = Zotero.Groups.getGroupIDFromLibraryID(libraryID);