diff --git a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig index 9e87eede..72ae0ee8 100644 --- a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig +++ b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig @@ -115,7 +115,7 @@ $( "#sendbtn" ).click(function() { var data = CKEDITOR.instances["chat_message"].getData(); - session.publish("websocket/channel/{{groupid}}", data); + if(data) session.publish("websocket/channel/{{groupid}}", data); }); /*