|
|
@ -210,7 +210,9 @@ define('forum/topic/posts', [
|
|
|
|
html.insertBefore(before);
|
|
|
|
html.insertBefore(before);
|
|
|
|
|
|
|
|
|
|
|
|
// Now restore the relative position the user was on prior to new post insertion
|
|
|
|
// Now restore the relative position the user was on prior to new post insertion
|
|
|
|
|
|
|
|
if (scrollTop > 0) {
|
|
|
|
$(window).scrollTop(scrollTop + ($(document).height() - height));
|
|
|
|
$(window).scrollTop(scrollTop + ($(document).height() - height));
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
components.get('topic').append(html);
|
|
|
|
components.get('topic').append(html);
|
|
|
|
}
|
|
|
|
}
|
|
|
|