Use collectionTreeView's getSelectedLibraryID() in zoteroPane.js
This commit is contained in:
parent
570ba2c909
commit
8a5f12680d
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue