Fixes problem where deleting a note would accidentally hide other items in the list.

This commit is contained in:
David Norton 2006-07-05 15:35:15 +00:00
parent daf8808615
commit cb4a79ef9d

View File

@ -84,9 +84,12 @@ 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];
if(row != null)
{
this._hideItem(row-i); this._hideItem(row-i);
this._treebox.rowCountChanged(row-i,-1); this._treebox.rowCountChanged(row-i,-1);
} }
}
madeChanges = true; madeChanges = true;
} }