prevent empty chat-messages from being sent
This commit is contained in:
parent
44981e8907
commit
77401f2759
|
@ -73,6 +73,8 @@ var chat = (function()
|
|||
send: function()
|
||||
{
|
||||
var text = $("#chatinput").val();
|
||||
if(text.trim().length == 0)
|
||||
return;
|
||||
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
|
||||
$("#chatinput").val("");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue