Fixes problem where deleting a note would accidentally hide other items in the list.
This commit is contained in:
parent
daf8808615
commit
cb4a79ef9d
|
@ -84,8 +84,11 @@ Scholar.ItemTreeView.prototype.notify = function(action, type, ids)
|
||||||
for(var i=0, len=rows.length; i<len; i++)
|
for(var i=0, len=rows.length; i<len; i++)
|
||||||
{
|
{
|
||||||
var row = rows[i];
|
var row = rows[i];
|
||||||
this._hideItem(row-i);
|
if(row != null)
|
||||||
this._treebox.rowCountChanged(row-i,-1);
|
{
|
||||||
|
this._hideItem(row-i);
|
||||||
|
this._treebox.rowCountChanged(row-i,-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
madeChanges = true;
|
madeChanges = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user