Merge pull request #1370 from mluto/fix-load-message-IE8

Fixed message-sending in IE8
pull/1371/head
John McLear 2013-01-16 09:53:39 -08:00
commit 6802353306
1 changed files with 1 additions and 1 deletions

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("");