www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1c560eb94c7e4c4c910bbc43f5f78425a2bb2c79
parent 9ac7b450103b39c438a508c5c52b675cb37afa16
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  2 Aug 2011 03:34:32 +0000

Fix file editing in Search/Unfiled/Duplicates


Diffstat:
Mchrome/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 @@ -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);