Implemented a javascript code style

This commit is contained in:
Stefan Zermatten
2015-04-22 12:44:25 +02:00
parent dce20375b5
commit fada0f5136
113 changed files with 1614 additions and 1650 deletions

View File

@@ -1,6 +1,9 @@
Template.characterList.helpers({
characterDetails: function(){
var char = Characters.findOne(this._id, {fields: {name: 1, gender: 1, alignment: 1, race:1, color: 1}});
var char = Characters.findOne(
this._id,
{fields: {name: 1, gender: 1, alignment: 1, race:1, color: 1}}
);
char.title = char.name;
char.field = "base";
char.class = "characterCard";
@@ -12,7 +15,10 @@ Template.characterList.events({
"tap .characterCard": function(event, instance){
Router.go("characterSheet", {_id: this._id});
},
"tap .addCharacter": function (event, template) {
GlobalUI.showDialog({heading: "New Character", template: "newCharacterDialog"});
"tap .addCharacter": function(event, template) {
GlobalUI.showDialog({
heading: "New Character",
template: "newCharacterDialog",
});
},
});