summary refs log tree commit diff
path: root/webclient/room
diff options
context:
space:
mode:
Diffstat (limited to 'webclient/room')
-rw-r--r--webclient/room/room-controller.js40
-rw-r--r--webclient/room/room.html3
2 files changed, 22 insertions, 21 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 1b921325b3..3fc45bc782 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -16,30 +16,30 @@ limitations under the License.
 
 angular.module('RoomController', [])
 // FIXME move directives outta here!
-.directive("keepScroll", function(){
-  return {
-    controller : function($scope){
-      var element = 0;
-      this.setElement = function(el){
-        element = el;
-      }
-      this.addItem = function(item){
-        element.scrollTop = (element.scrollTop+item.clientHeight+1); //1px for margin
-      };
-    },
-    link : function(scope,el,attr, ctrl) {
-     ctrl.setElement(el[0]);
-    }
-  };
+.directive("keepScroll", function() {
+    return {
+        controller : function($scope) {
+            var element = 0;
+            this.setElement = function(el){
+                element = el;
+            }
+            this.addItem = function(item){
+                element.scrollTop = (element.scrollTop + item.clientHeight);
+            };
+        },
+        link : function(scope, el, attr, ctrl) {
+            ctrl.setElement(el[0]);
+        }
+    };
 })
 // FIXME move directives outta here!
 .directive("scrollItem", function(){
-  return{
-    require : "^keepScroll",
-    link : function(scope, el, att, scrCtrl){
-      scrCtrl.addItem(el[0]);
+    return {
+        require : "^keepScroll",
+        link : function(scope, el, att, scrCtrl){
+            scrCtrl.addItem(el[0]);
+        }
     }
-  }
 })
 .controller('RoomController', ['$scope', '$http', '$timeout', '$routeParams', '$location', 'matrixService', 'eventStreamService', 'eventHandlerService',
                                function($scope, $http, $timeout, $routeParams, $location, matrixService, eventStreamService, eventHandlerService) {
diff --git a/webclient/room/room.html b/webclient/room/room.html
index e2a4c221c6..0285f9e7e0 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -63,7 +63,7 @@
                         <button ng-click="send()">Send</button>
                     </td>
                     <td width="1">
-                        {{ feedback }}
+                        
                     </td>
                 </tr>
                 <tr>
@@ -87,6 +87,7 @@
             </span>
             <button ng-click="leaveRoom()">Leave</button>
             <button ng-click="loadMoreHistory()" ng-disabled="!state.can_paginate">Load more history</button>
+            {{ feedback }}
             <div ng-hide="!state.stream_failure">
                 {{ state.stream_failure.data.error || "Connection failure" }}
             </div>