I'm having a problem with the moveForm function triggered when replying on an excisting comment. I just can't seem to get it working, the respond div just won't move under the comment I'm replying on.
Everything seems to be in order:
Which does get loaded correctly like this:
To be sure the problem isn't in my comments.php file I removed the callback function and put
comment_form(); but that didn't change anything...
In the comment form the Reply link is added like this:
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
The output of the Reply links seems to be correct:
<a class="comment-reply-link" href="/wordpress/feature/postname?replytocom=51#respond" onclick="return addComment.moveForm("div-comment-51", "51", "respond", "1878")">Reply</a>
However the div- is missing in the comments list id's, they're supposed to be comment-51. So when I change my callback back to twentyten:
wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
The output of the reply links become correct like this:
<a class="comment-reply-link" href="/wordpress/feature/postname?replytocom=51#respond" onclick="return addComment.moveForm("comment-51", "51", "respond", "1878")">Reply</a>
But the form is still not moving, instead the reply-title in the allready excisting respond form changes and the cancel reply link show up...
Tips anyone? Thanks for your help!