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:
parent
7aef526696
commit
fa23389d2c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user