Add Zotero.Libraries.isGroupLibrary
This commit is contained in:
parent
9f535e0e91
commit
442388304b
1 changed files with 9 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue