Here's a patch that combines several patches:
#1548964: new comments posted below the pager [patch attached]
#1883502: Incorrect status message if comment is not yet approved
#1881732: Theme status messages in drupal way instead of pure html concatenation
#1792734: Indentation fix for threaded comments
#1822510: jquery 1.6+ incompatibility: reply scrolls to top of screen
#1842166: Reply comment not working with AJAX (redirect to new page).

Also includes these fixes:
- Properly scroll to added comment event when status message is included
- Only scroll to added comment or form when it isn't visible (scrolls the least amount possible)
- Change the order of ajax_commands to delete the comment form, then add the comment (this is so that the scroll to comment works perfectly)
- force a reload of the comment when submitting. This allows for other modules to fully populate the comment object with extra fields

The patch can be applied directly to the 7.x.1.x-dev branch.

CommentFileSizeAuthor
ajax_comments-big_fix.patch10.22 KBttkaminski
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

muschpusch’s picture

Priority: Normal » Major

Sorry i'm just seeing this for the first time! Could you please re-roll against current dev? The patch doesn't apply anymore...

muschpusch’s picture

Assigned: Unassigned » muschpusch
Status: Active » Needs work

this patch is a nice refactoring of some stuff!

mihai7221’s picture

Yes indeed is very nice, but the patch fails against the current dev.

muschpusch’s picture

Assigned: muschpusch » Unassigned
formatC'vt’s picture

Issue summary: View changes
Status: Needs work » Fixed

Try latest dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.