Fixes #422, Scroll to note in items pane when adding note via selection

Fixes this for other item types too (e.g. if title changes)
This commit is contained in:
Dan Stillman 2006-12-17 21:01:06 +00:00
parent 7aef526696
commit fa23389d2c

View File

@ -273,6 +273,12 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids)
this.selectItem(ids[0]);
}
// If single item is selected and was modified, reselect
// (in case the sort order changed and it went off-screen)
else if (action == 'modify' && ids.length == 1 &&
savedSelection.length == 1 && savedSelection[0] == ids[0]) {
this.selectItem(ids[0]);
}
else
{
this.rememberSelection(savedSelection);