Add Zotero.Libraries.isGroupLibrary

This commit is contained in:
Aurimas Vinckevicius 2014-11-14 05:30:14 -06:00
parent 9f535e0e91
commit 442388304b

View file

@ -177,4 +177,12 @@ Zotero.Libraries = new function () {
throw new Error("Unsupported library type '" + type + "' in Zotero.Libraries.getName()");
}
}
}
this.isGroupLibrary = function (libraryID) {
if (!_libraryDataLoaded) {
throw new Error("Library data not yet loaded");
}
return this.getType(libraryID) == 'group';
}
}