Commits

Olemis Lang committed 099e52f

BH Theme #474 : Animated div scroll

Comments (0)

Files changed (1)

t474/t474_r1467231_vcs_browser_blame.diff

 +        function msgScrollBottom() {
 +          if (message) {
 +            var msgbody = message.find('.modal-body');
-+            msgbody.scrollTop(msgbody[0].scrollHeight);
++            msgbody.animate({scrollTop:msgbody[0].scrollHeight}, 500);
 +          }
 +        }
 +
 +        function msgScrollTop() {
 +          if (message) {
-+            message.find('.modal-body').scrollTop(0);
++            message.find('.modal-body').animate({scrollTop:0}, 500);
 +          }
 +        }
 +