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 () {
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue