Reply to comment problem with jquery tabs
-
On my site for my comments I have a simple jquery tab setup with 3 tabs. Each tab calls a wp_list_comments with a different orderby setting (one with comment karma, one with comment date ASC, and one with comment date desc). An idea of the type of tabs i’m using can be found here:
https://www.sunsean.com/idTabs/#usual
with the content of each tab being my comments.
The problem I’m having is that if a user clicks reply to comment, the reply box/field only appears in the 1st tab. If reply is clicked in the 2nd/3rd tab it seems like nothing happens but switching back to the first tab you notice that the reply field/box has appeared there.
Does anyone have any idea how to fix this, if possible? Thanks
Just some more information, from comment-template.php This is what every reply to a comment link is referencing:
$link = "<a rel='nofollow' class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
For example (this is what firebug is saying is being called in html to reply to a comment with id 11):
<a class="comment-reply-link" onclick="return addComment.moveForm("comment-11", "11", "respond", "11")" href="/url of post/?replytocom=11#respond">Reply> </a>
Is there any reason why the reply field will only be displayed in the first tab and not displayed in the other tabs.
- The topic ‘Reply to comment problem with jquery tabs’ is closed to new replies.