Fixed stuff, enabled character deletion

This commit is contained in:
Thaum
2015-03-30 12:13:27 +00:00
parent 35ce49ded8
commit 8d183a708f
19 changed files with 127 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
Template.characterSheet.created = function(){
Session.setDefault(this.data._id + ".selectedTab", "stats");
}
};
var setTab = function(charId, tab){
return Session.set(charId + ".selectedTab", tab);
@@ -26,4 +26,11 @@ Template.characterSheet.events({
"color-change": function(event, instance){
Characters.update(this._id, {$set: {color: event.color}});
},
"tap #deleteCharacter": function(event, instance){
GlobalUI.showDialog({
heading: "Delete " + this.name,
data: this,
template: "deleteCharacterConfirmation",
});
},
});