js/supportchat.js

changeset 34
510ca613996a
parent 33
60f794938bf7
equal deleted inserted replaced
33:60f794938bf7 34:510ca613996a
68 { 68 {
69 if(nick == our_nick) 69 if(nick == our_nick)
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 var html = "<span class='muc-message'><span class='muc-nick'>" + htmlescape(nick) + "</span>" + " is answering your query</span><br/>\n";
74 $("#support-log").append(html).scrollTop($("#support-log")[0].scrollHeight);
75 $("#support-send-button").click(function ()
76 {
77 question_muc.send_message($("#support-input").val());
78 $("#support-input").val("");
79 });
73 set_ui_state("converse"); 80 set_ui_state("converse");
74 } 81 }
75 }, 82 },
76 83
77 message: function (stanza, muc, nick, message) 84 message: function (stanza, muc, nick, message)

mercurial