allow user to hit "enter" for username submission
This commit is contained in:
+5
-1
@@ -15,8 +15,12 @@ $(function(){
|
|||||||
$("#alert").hide();
|
$("#alert").hide();
|
||||||
$("#stream").hide();
|
$("#stream").hide();
|
||||||
$("#uinputs").hide();
|
$("#uinputs").hide();
|
||||||
|
|
||||||
$("#submit-username").click(authenticate);
|
$("#submit-username").click(authenticate);
|
||||||
|
$('#username').keydown(function (e){
|
||||||
|
if(e.keyCode == 13 || e.keyCode == 32){
|
||||||
|
authenticate();
|
||||||
|
}
|
||||||
|
})
|
||||||
$("#submit-uinput").click(send);
|
$("#submit-uinput").click(send);
|
||||||
setupWS();
|
setupWS();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user