diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-11 18:28:25 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-11 18:28:25 +0100 |
commit | 2197882bc5a131ed7c877505ac66cbfa02679273 (patch) | |
tree | a9c28b0e62eeb0c645854c6c7cddedae1b79a85d /webchat/public/functions.js | |
parent | 797fd5c8d4aff71767ea46a208616ecc3cbc1d4e (diff) |
webchat: join and quit color via css
Diffstat (limited to 'webchat/public/functions.js')
-rw-r--r-- | webchat/public/functions.js | 4 |
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; |