BattleSim/client/app/js/concerns/spectating.coffee

5 lines
161 B
CoffeeScript

$(document).on 'click', '.spectate', ->
battleId = $(this).data('battle-id')
PokeBattle.router.navigate("battles/#{battleId}", trigger: true)
return false