This commit is contained in:
mluto 2013-01-16 09:52:35 -08:00
commit 5fd5785fe5

View file

@ -75,7 +75,7 @@ var chat = (function()
send: function()
{
var text = $("#chatinput").val();
if(text.trim().length == 0)
if(text.replace(/\s+/,'').length == 0)
return;
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
$("#chatinput").val("");