When the user clicks 'save' and then while is the comment is being saved, clicks reply to another comment, the previous comment gets saved as a reply to this one.
To reproduce:
1. Write a comment
2. Click save
3. While the comment is not yet saved, click reply to another comment.
4. You will see the comment being popped into the incorrect thread.
I looked into the JS code and found out that the click to reply handler does the job of assigning the comment number. This function does not check whether a comment save is still in progress.
Since I am a newbie in AJAX and know almost nothing about this module, I was not sure what to put in there to fix. This problem definitely needs to be fixed. It affects slower sites really badly.
Comments
Comment #1
udvranto CreditAttribution: udvranto commentedThe following function in ajax_comments.js should return before setting the pid if the comment is still being saved
Comment #2
udvranto CreditAttribution: udvranto commentedWhat does this code fragment do? There is no variable named 'submitted'! Or is there?
Comment #3
udvranto CreditAttribution: udvranto commentedI tried. It does not work. Takes me to a new page.
Comment #5
udvranto CreditAttribution: udvranto commentedAny update on this?
Comment #6
udvranto CreditAttribution: udvranto commentedShouldn't we remove the reply handlers as well?
Comment #7
udvranto CreditAttribution: udvranto commentedHow do I know if the comment is being saved now?
Comment #8
qzmenkoIssue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.