corrade-http-templates
/groupChat/groupChat.html |
---|
@@ -42,9 +42,7 @@ |
(function retrieveMessages() { |
$.get("chat.log?t=" + Math.random(), function(data) { |
$("#chat").html(data); |
$("#chat").animate({ |
scrollTop:$("#chat")[0].scrollHeight - $("#chat").height() |
},1000); |
$("#chat").scrollTop($("#chat")[0].scrollHeight); |
setTimeout(retrieveMessages, 1000); |
}); |
}()); |