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
Comment #1
ecube85 commentedI 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.
Comment #2
neochief commentedWaiting for your patches...
Comment #3
ecube85 commentedSure..
I am implementing the fix. I will post the patch if I am able to fix it!!
Comment #4
ecube85 commentedHi, In the code I am seeing something like pressed links. Can some one please tell me what is that for?
Comment #5
neochief commentedWhen you pressed reply link, form expand under it. When you press one more time, it closes. That's the pressed state's usage.
Comment #6
ecube85 commentedHi 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..
Comment #7
ecube85 commentedBut 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.
Comment #8
rjbrown99 commentedDuplicate of #743040: Ajax comments and views
Comment #9
rjbrown99 commented