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++)
|
||||
{
|
||||
var row = rows[i];
|
||||
this._hideItem(row-i);
|
||||
this._treebox.rowCountChanged(row-i,-1);
|
||||
if(row != null)
|
||||
{
|
||||
this._hideItem(row-i);
|
||||
this._treebox.rowCountChanged(row-i,-1);
|
||||
}
|
||||
}
|
||||
|
||||
madeChanges = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user