Fix emptying from trash (broken in 7ede52355d)

Zotero.Items.eraseTx() doesn't exist -- use Zotero.Items.erase() instead
This commit is contained in:
Dan Stillman 2017-02-10 14:11:10 -05:00
parent 12735faa92
commit 469d689f37
2 changed files with 2 additions and 2 deletions

View file

@ -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');
}

View file

@ -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);