Use collectionTreeView's getSelectedLibraryID() in zoteroPane.js

This commit is contained in:
Dan Stillman 2011-10-05 17:46:23 +00:00
parent 570ba2c909
commit 8a5f12680d

View file

@ -1922,16 +1922,12 @@ var ZoteroPane = new function()
this.getSelectedLibraryID = function () { this.getSelectedLibraryID = function () {
var itemGroup = this.getItemGroup(); return this.collectionsView.getSelectedLibraryID();
return itemGroup && itemGroup.ref && itemGroup.ref.libraryID ? itemGroup.ref.libraryID : null;
} }
function getSelectedCollection(asID) { function getSelectedCollection(asID) {
if (this.collectionsView) { return this.collectionsView ? this.collectionsView.getSelectedCollection(asID) : false;
return this.collectionsView.getSelectedCollection(asID);
}
return false;
} }