Started implementing soft delete attacks, added delete toast

This commit is contained in:
Thaum
2015-03-24 13:07:27 +00:00
parent 107a4150ff
commit 46b836e707
6 changed files with 39 additions and 6 deletions

View File

@@ -3,7 +3,8 @@ var damageTypes = ["bludgeoning", "piercing", "slashing", "acid", "cold", "fire"
Template.attackEdit.events({
"tap #deleteAttack": function(event, instance){
Attacks.remove(this._id);
Attacks.softRemove(this._id);
GlobalUI.deletedToast(this._id, "Attacks", "Attack");
},
"change #attackBonusInput": function(event){
var value = event.currentTarget.value;