Notes deleted via "-" button didn't go to trash
This commit is contained in:
parent
5586b409e9
commit
ae39584c68
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue