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 fc2716553..e5f9dd2ac 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 @@ -66,9 +66,9 @@ var ChatBoxUI = Class.extend({ appendMessage: function(message, msgClass) { if (msgClass == undefined) msgClass = "chatMessage"; - this.chatMessagesDiv.append("
" + message + "
"); - if ($("div", this.chatMessagesDiv).length > 100) { - $("div", this.chatMessagesDiv).first().remove(); + this.chatMessagesDiv.append("
" + message + "
"); + if ($("div.message", this.chatMessagesDiv).length > 150) { + $("div.message", this.chatMessagesDiv).first().remove(); } this.chatMessagesDiv.prop({ scrollTop: this.chatMessagesDiv.prop("scrollHeight") }); },