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

@@ -10,14 +10,9 @@ Template.characterList.helpers({
Template.characterList.events({
"tap .characterCard": function(event, instance){
console.log(this);
Router.go("characterSheet", {_id: this._id});
},
"tap .addCharacter": function (event, template) {
Characters.insert({owner: Meteor.userId()});
},
"tap #deleteChar": function(event, template){
console.log("deleting", this);
Characters.remove(this._id);
}
});