option to stop autoscroll

This commit is contained in:
John McLear 2012-07-11 17:42:59 +01:00
parent beb6378656
commit 6726ea6632
2 changed files with 9 additions and 2 deletions

View file

@ -62,8 +62,11 @@ var chat = (function()
},
scrollDown: function()
{
if($('#chatbox').css("display") != "none")
$('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
if($('#options-scrollchat').is(':checked')){
if($('#chatbox').css("display") != "none"){
$('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
}
}
},
send: function()
{