mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2026-10-31 14:01:40 +00:00
Added popovers to team preview
This commit is contained in:
1 parent
b7230033bb
commit
27a571328b
3 files changed
+30
-4
No files matched your search
@@ -207,7 +207,13 @@ class @BattleView extends Backbone.View
|
||||
locals =
|
||||
battle : @model
|
||||
window : window
|
||||
yourTeam : @model.getTeam()
|
||||
@$('.battle_container').append @team_preview_template(locals)
|
||||
@$('.battle_teams').find('.arrange_team .pokemon_icon').each (i, el) =>
|
||||
$this = $(el)
|
||||
slot = $this.data('index')
|
||||
pokemon = @model.getPokemon(@model.get('index'), slot)
|
||||
@pokemonPopover($this, pokemon)
|
||||
|
||||
togglePokemonOrSwitch: (e) =>
|
||||
$currentTarget = $(e.currentTarget)
|
||||
|
||||
Reference in new issue
Block a user