Map fix
This commit is contained in:
parent
15693c79ae
commit
1b9bddcd8b
|
@ -27,6 +27,8 @@ $.getJSON('game/translations/'+i18n.lang+'.json', (data) ->
|
||||||
switchTab = (tabid) ->
|
switchTab = (tabid) ->
|
||||||
$(".tab").removeClass("active")
|
$(".tab").removeClass("active")
|
||||||
$("#"+tabid).addClass("active")
|
$("#"+tabid).addClass("active")
|
||||||
|
if tabid == "storytab" and not salet.here().canSave
|
||||||
|
salet.goBack()
|
||||||
|
|
||||||
$(document).ready(() ->
|
$(document).ready(() ->
|
||||||
window.addEventListener('popstate', (event) ->
|
window.addEventListener('popstate', (event) ->
|
||||||
|
@ -44,9 +46,6 @@ $(document).ready(() ->
|
||||||
)
|
)
|
||||||
$("body").on("click", ".tab", (event) ->
|
$("body").on("click", ".tab", (event) ->
|
||||||
switchTab(event.target.id)
|
switchTab(event.target.id)
|
||||||
if (event.target.id == "storytab")
|
|
||||||
if not salet.here().canSave
|
|
||||||
salet.goBack()
|
|
||||||
return true
|
return true
|
||||||
)
|
)
|
||||||
$("#page").on("click", "a", (event) ->
|
$("#page").on("click", "a", (event) ->
|
||||||
|
|
Loading…
Reference in New Issue