From d6a3639269e4beb3f59ff04681801a1d6726965b Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Wed, 20 Aug 2014 14:09:55 +0200 Subject: [PATCH] Replaced the image URL text input by a file selector button: "Send Image" --- webclient/room/room-controller.js | 5 +++-- webclient/room/room.html | 18 ++---------------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 2fa7fe34b..ca6d3d4a3 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; diff --git a/webclient/room/room.html b/webclient/room/room.html index 1ca28b20f..99b0bf681 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -65,28 +65,14 @@ - + + - - - - - - - - - - -