aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index b5bbd57b5..c1536bce8 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -652,7 +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') {
+ if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') {
+ console.log($('.item_' + bParam_mid.substring(0,32)));
$('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow');
if($('.collapsed-comments').length) {
var scrolltoid = $('.collapsed-comments').attr('id').substring(19);