diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index a2bd0dc2d..9161aa182 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -306,7 +306,7 @@ class ThreadItem { if($this->is_commentable() && $observer) { $like = array( t("I like this \x28toggle\x29"), t("like")); $dislike = array( t("I don't like this \x28toggle\x29"), t("dislike")); - $reply_to = array( t("Reply on this comment"), t("reply"), t("Reply to"), t("Go to previous comment")); + $reply_to = array( t("Reply on this comment"), t("reply"), t("Reply to")); } if ($shareable) { @@ -428,6 +428,7 @@ class ThreadItem { 'like' => $like, 'dislike' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike : ''), 'reply_to' => (((! $this->is_toplevel()) && feature_enabled($conv->get_profile_owner(),'reply_to')) ? $reply_to : ''), + 'top_hint' => t("Go to previous comment"), 'share' => $share, 'embed' => $embed, 'rawmid' => $item['mid'], diff --git a/view/js/main.js b/view/js/main.js index 8dfb04779..5592fd63d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1160,8 +1160,14 @@ function doreply(parent, ident, owner, hint) { } function doscroll(parent, hidden) { - $('.back-to-reply').remove(); - var pos = $(window).scrollTop(); + var back = $('.back-to-reply'); + if(back.length == 0) { + var pos = Math.round($(window).scrollTop()); + } + else { + var pos = back.attr('href').replace(/\D/g,'') + } + back.remove(); var x = '#hide-comments-outer-' + hidden.toString(); if($(x).length !== 0) { x = $(x).attr("onclick").replace(/\D/g,''); diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 20177038f..eceff51c7 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -28,7 +28,7 @@ {{/if}}
{{if $item.thr_parent}} -     +     {{/if}}