mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
Fix error when trying to delete all items in Library (thanks Dan C.)
This commit is contained in:
parent
46368e98dd
commit
97b2abf2f9
1 changed files with 8 additions and 0 deletions
|
|
@ -782,6 +782,14 @@ Scholar.ItemTreeView.TreeRow.prototype.getType = function()
|
|||
return this.ref.getType();
|
||||
}
|
||||
|
||||
Scholar.ItemTreeView.TreeRow.prototype.numChildren = function()
|
||||
{
|
||||
if(this.isRegularItem())
|
||||
return this.ref.numChildren();
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Scholar.ItemTreeView.TreeRow.prototype.numNotes = function()
|
||||
{
|
||||
if(this.isRegularItem())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue