Merge pull request #1370 from mluto/fix-load-message-IE8
Fixed message-sending in IE8
This commit is contained in:
commit
6802353306
|
@ -75,7 +75,7 @@ var chat = (function()
|
||||||
send: function()
|
send: function()
|
||||||
{
|
{
|
||||||
var text = $("#chatinput").val();
|
var text = $("#chatinput").val();
|
||||||
if(text.trim().length == 0)
|
if(text.replace(/\s+/,'').length == 0)
|
||||||
return;
|
return;
|
||||||
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
|
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
|
||||||
$("#chatinput").val("");
|
$("#chatinput").val("");
|
||||||
|
|
Loading…
Reference in New Issue