I'm using views to show three nodes(blog entries), which each have a comment section. Only the first node on the pages is ajaxed. The other two comment sections are not be ajaxafied. It would be nice if there was a way to allow for multiple instances of this module on one page.

Comments

ecube85’s picture

I am facing same problem. I looked into ajax_comments.js and found that it process only form with id='comment-form' and makes that form ajaxed. Now if there are more than one comment forms on a page then the ids of forms are like comment-form, comment-form-1, comment-form-2 and so on.

I think that it should use some other way to detect comment forms instead of id. Currently it searches forms using $('#comment-form'). Instead it should be $('form[id^=comment-form]') so that all forms can be processed.

neochief’s picture

Waiting for your patches...

ecube85’s picture

Sure..

I am implementing the fix. I will post the patch if I am able to fix it!!

ecube85’s picture

Hi, In the code I am seeing something like pressed links. Can some one please tell me what is that for?

neochief’s picture

When you pressed reply link, form expand under it. When you press one more time, it closes. That's the pressed state's usage.

ecube85’s picture

Hi neochief,

My fix is almost complete. I hope that within one day i will be able to deliver it :). By the way it is just a hack..

ecube85’s picture

But I think that this fix is still going to break some intended functionalities like reloading form from ajax.. But I am not sure about that.

rjbrown99’s picture

rjbrown99’s picture

Status: Active » Closed (duplicate)