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

@@ -1,6 +1,7 @@
Template.classDialog.events({
"tap #deleteButton": function(event, instance){
Classes.remove(instance.data.classId);
Classes.softRemove(instance.data.classId);
GlobalUI.deletedToast(instance.data.classId, "Classes", "Class");
GlobalUI.closeDetail()
},
"change #classNameInput": function(event){