From dc31b1f2ceef417d514587d979c3b7c6acb5e3be Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Fri, 2 Mar 2018 14:28:28 -0800 Subject: [PATCH] Fix not focusing the nickname box on page load. --- WebContent/js/cah.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebContent/js/cah.app.js b/WebContent/js/cah.app.js index 8165280..80488ef 100644 --- a/WebContent/js/cah.app.js +++ b/WebContent/js/cah.app.js @@ -40,8 +40,8 @@ $(document).ready(function() { $("#nickname").val($.cookie("nickname")); } $("#nicknameconfirm").click(nicknameconfirm_click); - $("#nickbox").keyup(nickbox_keyup); - $("#nickbox").focus(); + $("#nickname").keyup(nickbox_keyup); + $("#nickname").focus(); $(".chat", $("#tab-global")).keyup(chat_keyup($(".chat_submit", $("#tab-global")))); $(".chat_submit", $("#tab-global")).click(chatsubmit_click(null, $("#tab-global")));