aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/tpl/chat.tpl7
1 files changed, 3 insertions, 4 deletions
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl
index 2da7abe34..633437069 100644
--- a/view/tpl/chat.tpl
+++ b/view/tpl/chat.tpl
@@ -175,10 +175,9 @@ function update_chats(chats) {
$('#chatLineHolder').append(newNode);
$(".autotime").timeago();
- });
- var elem = document.getElementById('chatTopBar');
- elem.scrollTop = elem.scrollHeight;
-
+ var elem = document.getElementById('chatTopBar');
+ elem.scrollTop = elem.scrollHeight;
+ });
}
function chatJotGetLink() {