Fix bug in collectionTreeView that caused tree row loss

...when collapsing/expanding group libraries
This commit is contained in:
Aurimas Vinckevicius 2014-12-02 08:26:13 -06:00
parent d98a79c33f
commit ab7fc1614d

View File

@ -184,9 +184,9 @@ Zotero.CollectionTreeView.prototype.refresh = Zotero.Promise.coroutine(function*
rows, rows,
new Zotero.CollectionTreeRow('group', groups[i]), new Zotero.CollectionTreeRow('group', groups[i]),
1, 1,
beforeRow ? beforeRow + i + newRows : null beforeRow ? beforeRow + newRows : null
); );
newRows += yield self._expandRow(rows, row); newRows += 1 + ( yield self._expandRow(rows, row) );
} }
return newRows; return newRows;
}) })