summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-11 13:52:07 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-11 13:52:07 +0200
commit6b20fef52af078e6fa7343f2e9c23fcbbf6fef48 (patch)
tree4c2acda125017b6e0c66ee7465a3e1d85d5728d2 /webclient/room/room-controller.js
parentEnable enter key in the invite input (diff)
downloadsynapse-6b20fef52af078e6fa7343f2e9c23fcbbf6fef48.tar.xz
Invite: reset the input when the invitation has been done
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r--webclient/room/room-controller.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index fe3821eb45..da77864017 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -694,12 +694,13 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
         );
     }; 
     
-    $scope.inviteUser = function(user_id) {
+    $scope.inviteUser = function() {
         
-        matrixService.invite($scope.room_id, user_id).then(
+        matrixService.invite($scope.room_id, $scope.userIDToInvite).then(
             function() {
                 console.log("Invited.");
-                $scope.feedback = "Invite sent successfully";
+                $scope.feedback = "Invite successfully sent to " + $scope.userIDToInvite;
+                $scope.userIDToInvite = "";
             },
             function(reason) {
                 $scope.feedback = "Failure: " + reason;