Moved views out of private folder
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
Template.newCharacterDialog.events({
|
||||
"tap #addButton": function(event, instance){
|
||||
Characters.insert({
|
||||
name: instance.find("#nameInput").value,
|
||||
gender: instance.find("#genderInput").value,
|
||||
race: instance.find("#raceInput").value,
|
||||
owner: Meteor.userId(),
|
||||
}, function(err, id){
|
||||
if (err) throw err;
|
||||
Router.go("characterSheet", {_id: id});
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user