Skip to content

Commit

Permalink
Correctly hide all pages on app first start.
Browse files Browse the repository at this point in the history
  • Loading branch information
gga committed Dec 18, 2012
1 parent c3d70ed commit 7fda7e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/calatrava/templates/web/app/source/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ root = this
root.calatrava ?= {}
calatrava = root.calatrava

# Replace with your namespace
root.example ?= {}
example = root.example

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

window.onpopstate = (event) ->
if event.state
Expand Down

0 comments on commit 7fda7e3

Please sign in to comment.