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

5 lines
161 B
CoffeeScript
Raw Normal View History

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