1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-09-02 08:57:19 +00:00
BattleSim/client/app/js/concerns/spectating.coffee
2016-02-01 23:19:30 +01:00

5 lines
161 B
CoffeeScript

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