[BluetoothChat] updated BluetoothChat sources
[samples/web/BluetoothChat.git] / js / app.ui.js
index 9bd9d99..9e4f7cc 100644 (file)
@@ -192,13 +192,9 @@ function Ui(callback) {
                },
 
                disableSendButton: function Ui_disableSendButton() {
-                       setTimeout( function() {
-                               $('#ui-mySend')
-                                       .css({'pointer-events': 'none', 'color': '#bbb'})
-                                       .addClass('ui-disabled');
-                               },
-                               0
-                       );
+                       $('#ui-mySend')
+                               .css({'pointer-events': 'none', 'color': '#bbb'})
+                               .addClass('ui-disabled');
                },
 
                checkSendButtonState: function Ui_checkSendButtonState() {