Notes deleted via "-" button didn't go to trash

This commit is contained in:
Dan Stillman 2012-11-12 20:25:46 -05:00
parent 5586b409e9
commit ae39584c68

View file

@ -153,11 +153,10 @@ var ZoteroItemPane = new function() {
this.removeNote = function (id) {
var note = Zotero.Items.get(id);
var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
if (note && ps.confirm(null, '', Zotero.getString('pane.item.notes.delete.confirm'))) {
note.erase();
if (ps.confirm(null, '', Zotero.getString('pane.item.notes.delete.confirm'))) {
Zotero.Items.trash(id);
}
}