From: konekoneko Date: Wed, 3 Oct 2012 22:05:30 +0000 (+0900) Subject: 空発言を送信できないようにした X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=6594bbcdd647eb39d439c3f68c55b462f652393d;p=webchat%2FWebChat.git 空発言を送信できないようにした --- diff --git a/public/scripts/chatclient.js b/public/scripts/chatclient.js index 1af7b25..ab915bc 100644 --- a/public/scripts/chatclient.js +++ b/public/scripts/chatclient.js @@ -282,7 +282,7 @@ function sidEventListener(){ }; msg.message = cmd.parse(msg); - if(msg.message != null) + if(msg.message != null && msg.message != "") $socket.json.emit("send msg",msg); document.chat_form.message.value ="";