Thu, 18 Mar 2010 18:35:50 +0000
Display incoming messages in the UI
js/supportchat.js | file | annotate | diff | comparison | revisions |
--- a/js/supportchat.js Thu Mar 18 18:35:35 2010 +0000 +++ b/js/supportchat.js Thu Mar 18 18:35:50 2010 +0000 @@ -72,6 +72,12 @@ { set_ui_state("converse"); } + }, + + message: function (stanza, muc, nick, message) + { + var html = "<span class='muc-message'><span class='muc-nick'>" + htmlescape(nick) + "</span>" + ": " + htmlescape(message) + "</span><br/>\n"; + $("#support-log").append(html).scrollTop($("#support-log")[0].scrollHeight); } });