Fixed and finished implementing attribute summary detail views

This commit is contained in:
Stefan Zermatten
2015-04-21 15:42:10 +02:00
parent 6926693e9d
commit dce20375b5
16 changed files with 114 additions and 71 deletions

View File

@@ -113,6 +113,9 @@ Template.spells.helpers({
});
}
return bubbles;
},
slotStatName: function () {
return "level" + this.level +"SpellSlots";
}
});
@@ -136,6 +139,16 @@ Template.spells.events({
}
event.stopPropagation();
},
"tap .spellSlot": function (event, instance) {
var name = "Level " + this.level +" Spell Slots";
var stat = "level" + this.level +"SpellSlots";
var charId = instance.data._id;
GlobalUI.setDetail({
template: "attributeDialog",
data: {name: name, statName: stat, charId: charId},
heroId: charId + stat
});
},
"tap .containerTop": function(event){
GlobalUI.setDetail({
template: "spellListDialog",