mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
IE8 does not have a string.trim()-function, so use regex..
This commit is contained in:
parent
5eb09f981b
commit
e31b9fd1bd
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue