Implemented skill and attribute summary dialogs
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
Template.stats.events({
|
||||
"tap .statCard": function(event, instance){
|
||||
//TODO reimplement this when the dialog is nice
|
||||
return;
|
||||
var charId = instance.data._id;
|
||||
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
|
||||
});
|
||||
} else {
|
||||
GlobalUI.setDetail({
|
||||
template: "attributeDialog",
|
||||
data: {name: this.name, statName: this.stat, charId: charId},
|
||||
heroId: charId + this.stat
|
||||
});
|
||||
}
|
||||
},
|
||||
"tap .skillRow": function(event, instance){
|
||||
//TODO reimplement this when the dialog is nice
|
||||
return;
|
||||
var skill = this.skill;
|
||||
var charId = instance.data._id;
|
||||
GlobalUI.setDetail({
|
||||
|
||||
Reference in New Issue
Block a user