summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-15 17:42:02 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-15 17:42:11 +0100
commit5b817ecd44ac5672da2042bb72ba8cf6e8d911f1 (patch)
tree6b2891b92de5f94f0959907d03b44f0dd3eff7c1 /webclient/room/room.html
parentWhen new invites come down, update the My Rooms list. Added hacks to make the... (diff)
downloadsynapse-5b817ecd44ac5672da2042bb72ba8cf6e8d911f1.tar.xz
Added infinite scrolling. It's sliiiightly buggy in that it jumps down the list a bit, but it is overall working pretty well. Added ng-infinite-scroll-matrix.js and jquery-1.8.3 as deps.
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 93917071d9..e2a4c221c6 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -20,9 +20,9 @@
         </table>
     </div>
     
-    <div class="messageTableWrapper">
-        <table class="messageTable">
-            <tr ng-repeat="msg in events.rooms[room_id].messages" ng-class="msg.user_id === state.user_id ? 'mine' : ''">
+    <div class="messageTableWrapper" keep-scroll>
+        <table class="messageTable" infinite-scroll="paginateMore()">
+            <tr ng-repeat="msg in events.rooms[room_id].messages" ng-class="msg.user_id === state.user_id ? 'mine' : ''" scroll-item>
                 <td class="leftBlock">
                     <div class="sender" ng-hide="events.rooms[room_id].messages[$index - 1].user_id === msg.user_id">{{ members[msg.user_id].displayname || msg.user_id }}</div>
                     <div class="timestamp">{{ msg.content.hsob_ts | date:'MMM d HH:mm:ss' }}</div>