diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-20 13:43:31 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-20 13:43:31 +0200 |
commit | 955662d64c971487a3c49887226a418d1aa60599 (patch) | |
tree | 66f2e2641cb78d0399036447b3a04601a4856353 /webclient/room/room.html | |
parent | Don't generate room membership messages. Include previous state of in members... (diff) | |
download | synapse-955662d64c971487a3c49887226a418d1aa60599.tar.xz |
Disabled sending buttons while a message is being sent. Useful on bad Internet connection.
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room.html | 6 |
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"> |