mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
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) {
|
||||
switch (type) {
|
||||
case 'group':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue