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

@@ -32,14 +32,14 @@ var skills = {
Template.proficiencyView.helpers({
profIcon: function(){
var prof = this.value;
if(prof > 0 && prof < 1) return "image:brightness-2";
if(prof === 1) return "image:brightness-1";
if(prof > 1) return "av:album";
if (prof > 0 && prof < 1) return "image:brightness-2";
if (prof === 1) return "image:brightness-1";
if (prof > 1) return "av:album";
return "radio-button-off";
},
getName: function(){
if(this.type === "skill") return skills[this.name];
if(this.type === "save") return saves[this.name];
if (this.type === "skill") return skills[this.name];
if (this.type === "save") return saves[this.name];
return this.name;
}
},
});