www

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

commit 0a33f1fde7a91884afa1a88f2d8b3c3bbfb6c59b
parent b1275032f58e828a30b3194748e58577d9b15def
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 28 Sep 2011 04:01:39 +0000

Fix saving to group libraries


Diffstat:
Mchrome/content/zotero/zoteroPane.js | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1910,16 +1910,7 @@ var ZoteroPane = new function() this.getSelectedLibraryID = function () { var itemGroup = this.getItemGroup(); - var groupID = this.getSelectedGroup(true); - if (groupID) { - return groupID; - } - else if (itemGroup.isWithinGroup()) { - return itemGroup.ref.libraryID; - } - else { - return null; - } + return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null; }