From 8a5f12680db23d6f507706667a19edd89cf456ea Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 5 Oct 2011 17:46:23 +0000 Subject: [PATCH] Use collectionTreeView's getSelectedLibraryID() in zoteroPane.js --- chrome/content/zotero/zoteroPane.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 5a6c897726..173f5a6a3a 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1922,16 +1922,12 @@ var ZoteroPane = new function() this.getSelectedLibraryID = function () { - var itemGroup = this.getItemGroup(); - return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null; + return this.collectionsView.getSelectedLibraryID(); } function getSelectedCollection(asID) { - if (this.collectionsView) { - return this.collectionsView.getSelectedCollection(asID); - } - return false; + return this.collectionsView ? this.collectionsView.getSelectedCollection(asID) : false; }