Add Zotero.Libraries.getAll()
This commit is contained in:
parent
e0ea3ca99b
commit
ab4320df07
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ Zotero.Libraries = new function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
this.getAll = function () {
|
||||||
|
return [for (x of Object.keys(_libraryData)) parseInt(x)]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.add = Zotero.Promise.coroutine(function* (libraryID, type) {
|
this.add = Zotero.Promise.coroutine(function* (libraryID, type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'group':
|
case 'group':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue