Closed (outdated)
Project:
AJAX Comments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 18:46 UTC
Updated:
8 Jun 2020 at 18:25 UTC
Jump to comment: Most recent
Comments
Comment #1
rjbrown99 commentedThanks, 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.
Comment #2
piotrsmykaj commentedI have this problem too. It shouldnt go to last page when new comment posted.
Comment #3
yngens commentedsubscribe
Comment #4
akalata commentedHere'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();.Comment #5
FrankzeTank commented@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?
Comment #12
emosbaugh commentedwould 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.
Comment #18
boiky commentedsubs
Comment #19
qzmenkoIssue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.