js/supportchat.js

changeset 28
85fb6653b6e0
parent 27
8ca116c827cf
child 33
60f794938bf7
equal deleted inserted replaced
27:8ca116c827cf 28:85fb6653b6e0
70 team_muc.join(support_config.team_rooms[question_type], our_nick); 70 team_muc.join(support_config.team_rooms[question_type], our_nick);
71 else if(ui_state == "wait") 71 else if(ui_state == "wait")
72 { 72 {
73 set_ui_state("converse"); 73 set_ui_state("converse");
74 } 74 }
75 },
76
77 message: function (stanza, muc, nick, message)
78 {
79 var html = "<span class='muc-message'><span class='muc-nick'>" + htmlescape(nick) + "</span>" + ": " + htmlescape(message) + "</span><br/>\n";
80 $("#support-log").append(html).scrollTop($("#support-log")[0].scrollHeight);
75 } 81 }
76 }); 82 });
77 83
78 // Get a unique room name from the server and then join the question MUC 84 // Get a unique room name from the server and then join the question MUC
79 conn.sendIQ($iq({to: support_config.muc_server, type: "get"}) 85 conn.sendIQ($iq({to: support_config.muc_server, type: "get"})

mercurial