It should check "Default display order" option in content type settings. It always go to last page when posted new comment.

Comments

rjbrown99’s picture

Category: support » feature

Thanks, that sounds like a nice enhancement and probably isn't a huge amount of work. I'd be happy to review a patch if you or someone else creates one.

piotrsmykaj’s picture

I have this problem too. It shouldnt go to last page when new comment posted.

yngens’s picture

subscribe

akalata’s picture

Here's what I've managed to figure out:

ajax_comment.js, line 694, assumes that adding a comment to the last page is the desired outcome. By commenting out lines 695-702 and line 743, I've been able to render the latest comment on the first page -- BUT below all the other comments on that page.

To adjust where the comment appears initially (it's in the right place after a page refresh), I rewrote line 635 as $('#comments h2.comments').after($comment);.

Then, to set where the page auto-scrolls to after it's submitted, I overrode the offset declaration (lines 707 and 720) to send you to the top of the list: offset = $("#comments .comments").offset();.

FrankzeTank’s picture

@Aklata. Thanks a lot for that mod, that works near perfectly. The only problem i'm having now is that I have customized the comment form to be on top of the comments and because of the jquery slider, it jumps down and back up and looks really weird. I don't know any javascript, does anybody know how to modify it so that it simply goes straight to the new comment, and not to the bottom and then back up to the new comment?

emosbaugh’s picture

Category: feature » bug

would love a resolution for this. seems like a bug to me rather than a feature request. if i get some time i will look into it.

boiky’s picture

subs

qzmenko’s picture

Status: Active » Closed (outdated)

Issue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.