Fix emptying from trash (broken in 7ede52355d
)
Zotero.Items.eraseTx() doesn't exist -- use Zotero.Items.erase() instead
This commit is contained in:
parent
12735faa92
commit
469d689f37
2 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ var Zotero_RecognizePDF = new function() {
|
|||
|
||||
// If already stopped, delete
|
||||
if (this._stopped) {
|
||||
yield Zotero.Items.eraseTx(newItem.id);
|
||||
yield Zotero.Items.erase(newItem.id);
|
||||
throw new Zotero.Exception.Alert('recognizePDF.stopped');
|
||||
}
|
||||
|
||||
|
|
|
@ -1882,7 +1882,7 @@ Zotero.ItemTreeView.prototype.deleteSelection = Zotero.Promise.coroutine(functio
|
|||
collectionTreeRow.ref.deleteItems(ids);
|
||||
}
|
||||
else if (collectionTreeRow.isTrash() || collectionTreeRow.isPublications()) {
|
||||
yield Zotero.Items.eraseTx(ids);
|
||||
yield Zotero.Items.erase(ids);
|
||||
}
|
||||
else if (collectionTreeRow.isLibrary(true) || force) {
|
||||
yield Zotero.Items.trashTx(ids);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue