mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
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:
parent
53c466ee7f
commit
9da000ec4e
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue