Implemented Effect View for skills

This commit is contained in:
Thaum
2015-03-06 11:03:09 +00:00
parent 76ba6b441e
commit 40a050d88f
28 changed files with 602 additions and 86 deletions

View File

@@ -1,5 +1,23 @@
Template.stats.events({
"tap .statCard": function(event, instance){
if(this.isSkill){
var charId = instance.data._id;
GlobalUI.setDetail({
template: "skillDialog",
data: {name: this.name, skillName: this.stat, charId: charId},
heroId: charId + this.stat
});
}
},
"tap .skillRow": function(event, instance){
var skill = this.skill;
var charId = instance.data._id;
GlobalUI.setDetail({
template: "skillDialog",
data: {name: this.name, skillName: skill, charId: charId},
heroId: charId + skill
});
}
});
Template.stats.helpers({