aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-01 11:13:04 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-01 11:13:04 +0200
commit5b55726a93eb6ee94e4c23a15f18c71b511c752e (patch)
tree9aff574c4fca15779b11a9d201abccba21bf1e4e
parentbbe93d0e1dc23729bcd5904810bb86f9b6b489e9 (diff)
downloadvolse-hubzilla-5b55726a93eb6ee94e4c23a15f18c71b511c752e.tar.gz
volse-hubzilla-5b55726a93eb6ee94e4c23a15f18c71b511c752e.tar.bz2
volse-hubzilla-5b55726a93eb6ee94e4c23a15f18c71b511c752e.zip
on update only jump to bottom if we actually got a new message
-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() {