summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-20 13:43:31 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-20 13:43:31 +0200
commit955662d64c971487a3c49887226a418d1aa60599 (patch)
tree66f2e2641cb78d0399036447b3a04601a4856353 /webclient/room/room.html
parentDon't generate room membership messages. Include previous state of in members... (diff)
downloadsynapse-955662d64c971487a3c49887226a418d1aa60599.tar.xz
Disabled sending buttons while a message is being sent. Useful on bad Internet connection.
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 8cae7ee515..1ca28b20fe 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -63,10 +63,10 @@
                         {{ state.user_id }} 
                     </td>
                     <td width="*" style="min-width: 100px">
-                        <input id="mainInput" ng-model="textInput" ng-enter="send()" ng-focus="true" auto-complete/>
+                        <input id="mainInput" ng-model="textInput" ng-enter="send()" ng-disabled="state.sending" ng-focus="true" auto-complete/>
                     </td>
                     <td width="1">
-                        <button ng-click="send()">Send</button>
+                        <button ng-click="send()" ng-disabled="state.sending">Send</button>
                     </td>
                     <td width="1">
                         
@@ -79,7 +79,7 @@
                         <input id="mainInput" ng-model="imageURLToSend" ng-enter="sendImage(imageURLToSend)" placeholder="Image URL"/>
                     </td>
                     <td width="100px">
-                        <button ng-click="sendImage(imageURLToSend)">Send URL</button>
+                        <button ng-click="sendImage(imageURLToSend)" ng-disabled="state.sending">Send URL</button>
                     </td>
                     <!-- TODO: To enable once we have an upload server
                     <td width="100px">