Tweaks
This commit is contained in:
parent
873603465c
commit
bbfa4ba53d
3 changed files with 7 additions and 9 deletions
|
|
@ -173,7 +173,7 @@ $('#register').click(function() {
|
|||
});
|
||||
|
||||
$('#chatline').keydown(function(ev) {
|
||||
if(ev.keyCode == 13) {
|
||||
if(ev.keyCode == 13 && $('#chatline').val() != '') {
|
||||
socket.emit('chatMsg', {
|
||||
msg: $('#chatline').val()
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue