Implemented Effect View for skills
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user