when highlighting one comment, scroll to it
though i wonder with highlighting comments and now scrolling to them, why we bother excluding all other threads. we aren't pagingating threads anyway.
This commit is contained in:
parent
dd860f06e3
commit
8c3841331d
|
@ -95,3 +95,13 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
|
|||
<div class="comment_reply"></div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<% if comment.highlighted %>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("html").animate({
|
||||
scrollTop: $("#comment_<%= comment.short_id %>").offset().top
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue