Commit e63458f4 authored by Markus Bergt's avatar Markus Bergt

added autoscroll

parent a8b159fe
......@@ -15,6 +15,11 @@ $(document).ready(function() {
if(!!obj.newMessages)
{
$('#chatbody').append(obj.newMessages);
$('html, body').animate({
scrollTop: $(document).height()-$(window).height()},
1400,
"swing"
);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment