Working on chat.

This commit is contained in:
marcins78@gmail.com
2011-09-12 16:42:10 +00:00
parent 1de10bf5fa
commit 5d98913cc3

View File

@@ -45,6 +45,16 @@ var ChatBoxUI = Class.extend({
var text = message.childNodes[0].nodeValue;
this.appendMessage("<b>" + from + ":</b>" + text);
}
setTimeout(this.updateChatMessages, 1000);
}
},
updateChatMessages: function(xml) {
var that = this;
this.communication.updateChat(this.name, function(xml) {
that.processMessages(xml);
});
}
});