[BluetoothChat] updated BluetoothChat sources
[samples/web/BluetoothChat.git] / js / app.ui.events.js
index f9ae99f..781c779 100644 (file)
@@ -166,6 +166,9 @@ function UiEvents(parent) {
                        $('#ui-mySend').on('click', function (event) {
                                event.stopPropagation();
                                var message = $('#text').val();
+                               if (message.length === 0) {
+                                       return;
+                               }
                                $('#text').val('');
                                self.ui.disableSendButton();
                                app.sendMessage(message);