Changed spell to spellObj in ng-repeat for class spells in order to

assist with applying an active class to current spell. (would collide
with $scope.spell in rootCtrl.js)
This commit is contained in:
Blade Barringer 2015-01-06 15:03:54 -06:00
parent 53c466ee7f
commit 9da000ec4e

View file

@ -122,19 +122,19 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
// Spells
ul.items(ng-if='main && list.type=="reward" && user.stats.class && !user.preferences.disableClasses')
li.task.reward-item(ng-repeat='(k,spell) in Content.spells[user.stats.class]', ng-if='user.stats.lvl >= spell.lvl',popover-trigger='mouseenter', popover-placement='top', popover='{{spell.notes()}}')
li.task.reward-item(ng-repeat='(k,spellObj) in Content.spells[user.stats.class]', ng-if='user.stats.lvl >= spellObj.lvl',popover-trigger='mouseenter', popover-placement='top', popover='{{spellObj.notes()}}')
.task-meta-controls
span.task-notes
span.glyphicon.glyphicon-comment
//left-hand size commands
.task-controls.task-primary
a.money.btn-buy.item-btn(ng-click='castStart(spell)')
a.money.btn-buy.item-btn(ng-click='castStart(spellObj)')
span.reward-cost
strong {{spell.mana}}
strong {{spellObj.mana}}
=env.t('mp')
// main content
span(ng-class='{"shop_{{spell.key}} shop-sprite item-img": true}')
p.task-text {{spell.text()}}
span(ng-class='{"shop_{{spellObj.key}} shop-sprite item-img": true}')
p.task-text {{spellObj.text()}}
br