Fix UI problem when adding a note to an item after deleting child notes from that item
This commit is contained in:
parent
8dcfbd43cd
commit
428c438528
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue