From 4fc0126661f2389843599a4a6829d8eb79a109e4 Mon Sep 17 00:00:00 2001 From: marijus Date: Sun, 9 Feb 2014 23:52:09 +0100 Subject: theming chat a little --- view/tpl/chat.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 7073a0a52..51aeb836e 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -1,5 +1,5 @@

{{$room_name}}

-
+
@@ -64,7 +64,7 @@ function update_inroom(inroom) { $.each( inroom, function(index, item) { var newNode = document.createElement('div'); $(newNode).html('' + item.name + ' ' + item.status + '
' + item.name + '
'); - html.appendChild(newNode); + html.appendChild(newNode); }); $('#chatUsers').html(html); } @@ -75,7 +75,8 @@ function update_chats(chats) { $.each( chats, function(index, item) { last_chat = item.id; var newNode = document.createElement('div'); - $(newNode).html('
' + item.name + '
' + item.name + ' ' + item.localtime + '
' + item.text + '
'); + newNode.setAttribute('class', 'chat-item'); + $(newNode).html('' + item.name + '
' + item.name + ' ' + item.localtime + '
' + item.text + '
'); $('#chatLineHolder').append(newNode); $(".autotime").timeago(); -- cgit v1.2.3