mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Fix 'this' binding in ZoteroPane.selectItem(), but this time for real
This commit is contained in:
parent
a2b572665d
commit
1f00e99e71
1 changed files with 3 additions and 3 deletions
|
|
@ -2024,16 +2024,16 @@ var ZoteroPane = new function()
|
|||
if (!selected) {
|
||||
if (item.deleted) {
|
||||
Zotero.debug("Item is deleted; switching to trash");
|
||||
this.collectionsView.selectTrash(item.libraryID);
|
||||
self.collectionsView.selectTrash(item.libraryID);
|
||||
}
|
||||
else {
|
||||
Zotero.debug("Item was not selected; switching to library");
|
||||
yield this.collectionsView.selectLibrary(item.libraryID);
|
||||
yield self.collectionsView.selectLibrary(item.libraryID);
|
||||
}
|
||||
yield self.itemsView.selectItem(itemID, expand);
|
||||
}
|
||||
deferred.resolve(true);
|
||||
}, this)
|
||||
})
|
||||
.catch(function(e) {
|
||||
deferred.reject(e);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue