Hi! First off thanks for a great module! Posting comments is now more efficient then ever! I have had some issues though, first one i solved thanks to http://drupal.org/node/412368. Now things work, but comments are not posted where they should. Instead they appear directly under the pager. A very short version of how my html for comments look is (some code removed for increased readability):

<div id="comments">
  <h2 id="comments-title">Kommentarer</h2>
  <a id="comment-15"/>
  <div class="comment odd comment-by-author comment-mine">
	<p class="submitted">
		2009-06-30, 14:12 av xcadmin	</p>
	<div class="content">
		<p>Test comment!</p>
	</div>
</div>
<div class="item-list">...</div>
<div style="display: block; opacity: 1;">...</div> <------ Comment Posted here
<div id="comment-preview" style="display: none;"/>
<div id="comment-area" class="box">	
<h2>Lämna en kommentar</h2>
<div class="content">
  <form id="comment-form" method="post" accept-charset="UTF-8" action="/comment/reply/21">
  </form>
</div>

I have looked at:

function insert_new_comment(comment) {
  if ($('#comment-form-content').attr('cid') == 0) {
    $('#comment-preview').before(comment);
  }
  else {
    if ($('#comment-form-content').next().is('.indented')) {
      $('#comment-form-content').next().append(comment);
    }
    else {
      $('#comment-form-content').before(comment);
      comment.wrap('<div class="indented"></div>');
    }
  }
}

Could this line be the source of the problem?

$(this).parents(".box").find(".content").attr('id','comment-form-content').removeClass("content");

Would greatly appreciate some help on this!

Comments

neochief’s picture

Status: Active » Fixed

It's fixed in 1.8.

Status: Fixed » Closed (fixed)

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