From ab4320df07b9522c46ea36b8881bfe52eaeb8052 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 May 2015 01:20:12 -0400 Subject: [PATCH] Add Zotero.Libraries.getAll() --- chrome/content/zotero/xpcom/data/libraries.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js index 9c7ca13fb..a693a0c38 100644 --- a/chrome/content/zotero/xpcom/data/libraries.js +++ b/chrome/content/zotero/xpcom/data/libraries.js @@ -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':