diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-27 17:39:05 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-27 17:39:05 -0700 |
commit | 3bf0a27e4505881e9a8c118f5025aa7a3495e54e (patch) | |
tree | 5fda01b4fd4d9ce7b3980a576c204773061df774 /view/js | |
parent | 44a2cc872cb1baa7807376939e2c5bf6f8f63dda (diff) | |
parent | 68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec (diff) | |
download | volse-hubzilla-3bf0a27e4505881e9a8c118f5025aa7a3495e54e.tar.gz volse-hubzilla-3bf0a27e4505881e9a8c118f5025aa7a3495e54e.tar.bz2 volse-hubzilla-3bf0a27e4505881e9a8c118f5025aa7a3495e54e.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js index b5bbd57b5..65a5311af 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -652,8 +652,8 @@ function updateConvItems(mode,data) { } // auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode - if(bParam_mid && mode == 'replace') { - $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow'); + if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') { + $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top - $('nav').outerHeight(true) }, 'slow'); if($('.collapsed-comments').length) { var scrolltoid = $('.collapsed-comments').attr('id').substring(19); $('#collapsed-comments-' + scrolltoid).slideDown(); |