diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-20 14:09:55 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-20 14:09:55 +0200 |
commit | d6a3639269e4beb3f59ff04681801a1d6726965b (patch) | |
tree | 9824ec41eec10dbfe59f33d9c3d1a1aaed0371aa /webclient/room/room-controller.js | |
parent | Disabled sending buttons while a message is being sent. Useful on bad Interne... (diff) | |
download | synapse-d6a3639269e4beb3f59ff04681801a1d6726965b.tar.xz |
Replaced the image URL text input by a file selector button: "Send Image"
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r-- | webclient/room/room-controller.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 2fa7fe34b1..ca6d3d4a3a 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -15,8 +15,8 @@ limitations under the License. */ angular.module('RoomController', ['ngSanitize']) -.controller('RoomController', ['$scope', '$http', '$timeout', '$routeParams', '$location', 'matrixService', 'eventStreamService', 'eventHandlerService', - function($scope, $http, $timeout, $routeParams, $location, matrixService, eventStreamService, eventHandlerService) { +.controller('RoomController', ['$scope', '$http', '$timeout', '$routeParams', '$location', 'matrixService', 'eventStreamService', 'eventHandlerService', 'mFileUpload', + function($scope, $http, $timeout, $routeParams, $location, matrixService, eventStreamService, eventHandlerService, mFileUpload) { 'use strict'; var MESSAGES_PER_PAGINATION = 30; @@ -372,6 +372,7 @@ angular.module('RoomController', ['ngSanitize']) matrixService.sendImageMessage($scope.room_id, url).then( function() { console.log("Image sent"); + $scope.state.sending = false; }, function(error) { $scope.feedback = "Failed to send image: " + error.data.error; |