Fix UI problem when adding a note to an item after deleting child notes from that item

This commit is contained in:
Dan Stillman 2010-01-26 03:57:43 +00:00
parent 8dcfbd43cd
commit 428c438528

View file

@ -769,11 +769,12 @@ Zotero.ItemTreeView.prototype.toggleOpenState = function(row, skipItemMapRefresh
}
}
this._dataItems[row].isOpen = !this._dataItems[row].isOpen;
if (!count) {
return;
}
this._dataItems[row].isOpen = !this._dataItems[row].isOpen;
this._treebox.rowCountChanged(row+1, count); //tell treebox to repaint these
this._treebox.invalidateRow(row);