diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 3d41946bba..8151425e10 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -176,4 +176,8 @@ socket.on('typing', function (users){ } }) -box.scrollTo(0, box.scrollHeight) \ No newline at end of file +function scroll_chat() { + box.scrollTo(0, box.scrollHeight) +} + +scroll_chat() \ No newline at end of file diff --git a/files/templates/chat.html b/files/templates/chat.html index f3d66b8d60..ea0c0f24ce 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -190,7 +190,7 @@ - + @@ -214,6 +214,6 @@ - + \ No newline at end of file