diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-01 11:13:04 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-01 11:13:04 +0200 |
commit | 5b55726a93eb6ee94e4c23a15f18c71b511c752e (patch) | |
tree | 9aff574c4fca15779b11a9d201abccba21bf1e4e /view | |
parent | bbe93d0e1dc23729bcd5904810bb86f9b6b489e9 (diff) | |
download | volse-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
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/chat.tpl | 7 |
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() { |