omit autoscrolling to toplevel items
This commit is contained in:
parent
3c9809bfe6
commit
5d2cf3d23c
@ -652,7 +652,7 @@ function updateConvItems(mode,data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
|
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
|
||||||
if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') {
|
if($('.item_' + bParam_mid.substring(0,32)).length && !$('.item_' + bParam_mid.substring(0,32)).hasClass('toplevel_item') && mode == 'replace') {
|
||||||
if($('.collapsed-comments').length) {
|
if($('.collapsed-comments').length) {
|
||||||
var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
|
var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
|
||||||
$('#collapsed-comments-' + scrolltoid + ' .autotime').timeago();
|
$('#collapsed-comments-' + scrolltoid + ' .autotime').timeago();
|
||||||
|
Reference in New Issue
Block a user