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

7 lines
276 B
CoffeeScript
Raw Normal View History

2016-02-01 22:19:30 +00:00
PokeBattle.primus.on 'version', (version) ->
if version != PokeBattle.CLIENT_VERSION
$modal = PokeBattle.modal 'modals/new_client', ($modal) ->
$modal.on 'click', '.button_refresh', ->
window.location.reload(true)
$modal.find('button').first().focus()