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 () {
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;
}