From 33f3cd3d4a5935422f5ef910390263c6928e5c57 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 31 Jan 2014 20:48:26 -0800 Subject: chat formatting/style improvements --- view/tpl/chat.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 19b3425da..420430550 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -65,7 +65,7 @@ function update_inroom(inroom) { var count = inroom.length; $.each( inroom, function(index, item) { var newNode = document.createElement('div'); - $(newNode).html('' + item.name + ''); + $(newNode).html('' + item.name + '
' + item.name + '
'); html.appendChild(newNode); }); $('#chatUsers').html(html); @@ -77,8 +77,10 @@ function update_chats(chats) { $.each( chats, function(index, item) { last_chat = item.id; var newNode = document.createElement('div'); - $(newNode).html('
' + item.name + '
' + item.text + '
'); + $(newNode).html('
' + item.name + '
' + item.name + ' ' + item.localtime + '
' + item.text + '
'); $('#chatLineHolder').append(newNode); + $(".autotime").timeago(); + }); var elem = document.getElementById('chatTopBar'); elem.scrollTop = elem.scrollHeight; -- cgit v1.2.3