From: Florian Zeitz Date: Sat, 8 Aug 2009 20:17:09 +0000 (+0200) Subject: Show joins and leaves X-Git-Url: https://git.babelmonkeys.de/?a=commitdiff_plain;h=35779938882c9328858d8494cc62f01fda153bd8;p=xmppchat.git Show joins and leaves --- diff --git a/js/main.js b/js/main.js index 2647add..5329f8b 100644 --- a/js/main.js +++ b/js/main.js @@ -112,8 +112,10 @@ function handlePresence(presence) { if (type == 'unavailable') { element = document.getElementById(nick); roster_list.removeChild(element); + $('#chat').append('
' + nick + ' left the groupchat
'); } else { roster_list.innerHTML += '
  • ' + nick + '
  • '; + $('#chat').append('
    ' + nick + ' joined the groupchat
    '); } return true;