www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 428c43852806c1eefb38da6fe10f04f73edf552e
parent 8dcfbd43cd19ae6b47e0557d8eb3d5e6d7c128a1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 26 Jan 2010 03:57:43 +0000

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


Diffstat:
Mchrome/content/zotero/xpcom/itemTreeView.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js @@ -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);