From 0f384052418447aa342b38c8df3b6a8a48c245ae Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Feb 2013 10:24:33 -0500 Subject: small event changes.. --- public/js/draw.js | 1 + public/js/game.js | 2 ++ 2 files changed, 3 insertions(+) (limited to 'public/js') diff --git a/public/js/draw.js b/public/js/draw.js index d97dba1..786b6b6 100644 --- a/public/js/draw.js +++ b/public/js/draw.js @@ -27,6 +27,7 @@ $(function(){ drawing = false; lastpoint = null; } + $("#chat-message").focus(); }); function clearWorkspace(){ workspaceCtx.fillStyle = "#fff"; diff --git a/public/js/game.js b/public/js/game.js index c348e9a..010f01f 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -6,7 +6,9 @@ var Game = { init: function(){ // Bind events from the server + socket.on('event-welcome', Events.receive.join); socket.on('event-join', Events.receive.join); + socket.on('event-part', Events.receive.join); socket.on('event-message', Events.receive.message); socket.on('event-image', Events.receive.image); Auth.init(); -- cgit v1.2.3-70-g09d2