mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Merge pull request #1355 from mluto/chat-no-empty-line
prevent empty chat-messages from being sent
This commit is contained in:
commit
bb9097e528
2 changed files with 29 additions and 0 deletions
|
@ -75,6 +75,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…
Add table
Add a link
Reference in a new issue