diff options
| author | Julie Lala <jules@okfoc.us> | 2013-04-01 18:02:54 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2013-04-01 18:02:54 -0400 |
| commit | 50ba68efc7290e572bde2e7e33829b2077e996c1 (patch) | |
| tree | 70609f926b94dfb8320a70fa67acb69530c732a8 /public/js | |
| parent | 94babc50f0c3b76c096cad859a57f1f970ceaaf5 (diff) | |
logout stuff
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/auth.js | 1 | ||||
| -rw-r--r-- | public/js/draw.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/public/js/auth.js b/public/js/auth.js index 0297ddd..9450509 100644 --- a/public/js/auth.js +++ b/public/js/auth.js @@ -37,6 +37,7 @@ var Auth = { Chat.join(); }, logout: function(){ + delete localStorage['nick']; $("#login").show(); } } diff --git a/public/js/draw.js b/public/js/draw.js index b15416b..3e91a16 100644 --- a/public/js/draw.js +++ b/public/js/draw.js @@ -28,7 +28,9 @@ $(function(){ drawing = false; lastpoint = null; } - $("#chat-message").focus(); + if (Game.nick) { + $("#chat-message").focus(); + } }); $(window).on("drawing:start", function(){ offset = $(workspace).offset(); |
