Sha256: 5b4bb7b54db4854ddf1e5f3e75ad2ebe68470c5517f1dfe93144b7543d5bd91b

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 Bytes

Contents

root = this
root.calatrava ?= {}
calatrava = root.calatrava

# Hide all the sub-pages when first launching the app
$(document).ready ->
  $('body > .container > .page').hide()

window.onpopstate = (event) ->
  if event.state
    tw.bridge.changePage event.state.page

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calatrava-0.6.4 lib/calatrava/templates/web/app/source/init.coffee