summaryrefslogtreecommitdiffstats
path: root/webchat/public/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'webchat/public/functions.js')
-rw-r--r--webchat/public/functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webchat/public/functions.js b/webchat/public/functions.js
index adcf3169..0b8f2d49 100644
--- a/webchat/public/functions.js
+++ b/webchat/public/functions.js
@@ -54,8 +54,8 @@ function getNicklistElement(name) {
}
function chatboxAppend (chat_from, chat_msg, type) {
- type = type||'chat'
- $('<tr><td class="'+type+'_date">'+getCurTime()+'</td><td class="'+type+'_from">'+chat_from+'</td><td class="'+type+'_msg">'+chat_msg+'</td></tr>').insertBefore('#foot');
+ type = type||'msg'
+ $('<tr><td class="date '+type+'_date">'+getCurTime()+'</td><td class="from '+type+'_from">'+chat_from+'</td><td class="msg '+type+'_msg">'+chat_msg+'</td></tr>').insertBefore('#foot');
var elem = document.getElementById('chatter');
elem.scrollTop = elem.scrollHeight;