Addresses #513, Deleted Items folder
Remember selection of trash in collection pane and don't lose focus after a restore
This commit is contained in:
parent
5e774efc42
commit
e200fd154c
1 changed files with 12 additions and 0 deletions
|
@ -613,6 +613,9 @@ Zotero.CollectionTreeView.prototype.saveSelection = function()
|
|||
else if (this._getItemAtRow(i).isSearch()) {
|
||||
return 'S' + this._getItemAtRow(i).ref.id;
|
||||
}
|
||||
else if (this._getItemAtRow(i).isTrash()) {
|
||||
return 'T';
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -649,6 +652,15 @@ Zotero.CollectionTreeView.prototype.rememberSelection = function(selection)
|
|||
this.selection.select(this._searchRowMap[id]);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'T':
|
||||
if (this._getItemAtRow(this.rowCount-1).isTrash()){
|
||||
this.selection.select(this.rowCount-1);
|
||||
}
|
||||
else {
|
||||
this.selection.select(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue