diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/chat.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/chat.js index aecac7d03..cdf9f8575 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/chat.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/chat.js @@ -45,6 +45,16 @@ var ChatBoxUI = Class.extend({ var text = message.childNodes[0].nodeValue; this.appendMessage("" + from + ":" + text); } + + setTimeout(this.updateChatMessages, 1000); } + }, + + updateChatMessages: function(xml) { + var that = this; + + this.communication.updateChat(this.name, function(xml) { + that.processMessages(xml); + }); } }); \ No newline at end of file