master
Alexander Yakovlev 5 years ago
parent 15693c79ae
commit 1b9bddcd8b
  1. 5
      game/begin.coffee

@ -27,6 +27,8 @@ $.getJSON('game/translations/'+i18n.lang+'.json', (data) ->
switchTab = (tabid) ->
$(".tab").removeClass("active")
$("#"+tabid).addClass("active")
if tabid == "storytab" and not salet.here().canSave
salet.goBack()
$(document).ready(() ->
window.addEventListener('popstate', (event) ->
@ -44,9 +46,6 @@ $(document).ready(() ->
)
$("body").on("click", ".tab", (event) ->
switchTab(event.target.id)
if (event.target.id == "storytab")
if not salet.here().canSave
salet.goBack()
return true
)
$("#page").on("click", "a", (event) ->

Loading…
Cancel
Save