Add Zotero.Libraries.getAll()

This commit is contained in:
Dan Stillman 2015-05-19 01:20:12 -04:00
parent e0ea3ca99b
commit ab4320df07

View File

@ -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':