diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-05 21:28:20 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-05 21:28:20 -0400 |
| commit | 4514c2c49f0e0ec7cf9911dc254a8d20644d5def (patch) | |
| tree | b4ac5caea8dca1cdefebb8873adf9d957ce7ae2a /public/js/lib/views/index.js | |
| parent | 4d6b5e96fbab0602c1781a8b7c06f32aa9d56d99 (diff) | |
pushing messages into a div
Diffstat (limited to 'public/js/lib/views/index.js')
| -rw-r--r-- | public/js/lib/views/index.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/public/js/lib/views/index.js b/public/js/lib/views/index.js index d5ec35d..a333b45 100644 --- a/public/js/lib/views/index.js +++ b/public/js/lib/views/index.js @@ -1,9 +1,9 @@ +var lobby, room + var SiteRouter = Router.extend({ + el: "body", - events: { - }, - routes: { "/": 'lobby', "/v/:name": 'room', @@ -11,7 +11,7 @@ var SiteRouter = Router.extend({ initialize: function(){ if (! user.username) { - $("#login").show() + app.view = new LoginView() } else { this.route() @@ -19,11 +19,12 @@ var SiteRouter = Router.extend({ }, lobby: function(){ - this.view = new LobbyView () + lobby = app.view = new LobbyView () }, room: function(name){ - this.view = new RoomView (name) + console.log("hi") + room = app.view = new RoomView (name) }, })
\ No newline at end of file |
