commit 8a5f12680db23d6f507706667a19edd89cf456ea parent 570ba2c909ad5727994277a3c45b9da616c20606 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 5 Oct 2011 17:46:23 +0000 Use collectionTreeView's getSelectedLibraryID() in zoteroPane.js Diffstat:
| M | 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 @@ -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; }