aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-26 16:20:52 -0700
committerredmatrix <mike@macgirvin.com>2016-09-26 16:20:52 -0700
commitcccffc77cd706710049f2d84021f84e25bea1f26 (patch)
tree9f72d79f0b60e322c81f3ea15f4f6dc676b4ae18
parenteae9774cb6fd1c4205f5a63b608adf64495de750 (diff)
parent8bf03d21cd329ed0804ea02e6ebfe06714f2a498 (diff)
downloadvolse-hubzilla-cccffc77cd706710049f2d84021f84e25bea1f26.tar.gz
volse-hubzilla-cccffc77cd706710049f2d84021f84e25bea1f26.tar.bz2
volse-hubzilla-cccffc77cd706710049f2d84021f84e25bea1f26.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
-rw-r--r--view/js/main.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 1c6798c36..b5bbd57b5 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -654,10 +654,12 @@ 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');
- var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
- $('#collapsed-comments-' + scrolltoid).slideDown();
- $('#hide-comments-' + scrolltoid).html(aStr.showfewer);
- $('#hide-comments-total-' + scrolltoid).hide();
+ if($('.collapsed-comments').length) {
+ var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
+ $('#collapsed-comments-' + scrolltoid).slideDown();
+ $('#hide-comments-' + scrolltoid).html(aStr.showfewer);
+ $('#hide-comments-total-' + scrolltoid).hide();
+ }
}
}