All delete buttons now soft-delete with toast prompt to undo

This commit is contained in:
Thaum
2015-03-25 07:33:27 +00:00
parent 46b836e707
commit d573b325d5
12 changed files with 34 additions and 18 deletions

View File

@@ -3,7 +3,8 @@ Template.noteDialog.events({
Notes.update(instance.data.noteId, {$set: {color: event.color}});
},
"tap #deleteButton": function(event, instance){
Notes.remove(instance.data.noteId);
Notes.softRemove(instance.data.noteId);
GlobalUI.deletedToast(instance.data.noteId, "Notes", "Note");
GlobalUI.closeDetail()
},
"change #noteNameInput, input #noteNameInput": function(event){