diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-06 13:04:24 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-06 13:04:24 -0400 |
| commit | 277e73e9d7e118b5cc1bd5888eb502b3d7380ec8 (patch) | |
| tree | f1b2f03ad2728cfa2a8b10fcbf10f5f3030dc216 /public/js/lib/views/lobby | |
| parent | fd3e6661d8911fc0ede063ade5c094c7188443e5 (diff) | |
| parent | 18ebdc7abb9982ceeba1aac651b1c874fad2b6c0 (diff) | |
Merge branch 'master' of ghghgh.us:asdf-yt
Diffstat (limited to 'public/js/lib/views/lobby')
| -rw-r--r-- | public/js/lib/views/lobby/lobby.js (renamed from public/js/lib/views/lobby/index.js) | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/public/js/lib/views/lobby/index.js b/public/js/lib/views/lobby/lobby.js index 0306445..6821436 100644 --- a/public/js/lib/views/lobby/index.js +++ b/public/js/lib/views/lobby/lobby.js @@ -1,17 +1,23 @@ var LobbyView = View.extend({ + el: "#lobby", + events: { - "form submit": "join" + "submit form": "join" }, initialize: function(){ this.$createRoom = this.$("#create-room") }, - join: function(){ + join: function(e){ + console.log("hwat") + e && e.preventDefault() var name = this.$createRoom.sanitizeName() + console.log("name") + if (! name) { return } window.location.href = "/v/" + name } -})
\ No newline at end of file +}) |
