XenForo Quick Reply (discussions.js)

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
After the Quick Reply is sent and it gets the response, it adds the content to the messagelist.
Is there a way to replace the content instead of add the new content under the old?

My problem is, that i have this window:
comments.webp
If a user creates the first response, it adds the comment UNDER my "no comment message"
comment2.webp
 
Or is there a way to call a callback class, after the comments were inserted? Then i could hide them via javascript
 
There's the following code in XenForo.QuickReply:
Code:
$form.trigger('QuickReplyComplete');
I can't find QuickReplyComplete. You may be able to add a QuickReplyComplete function that'll check and remove a specific ID on a div.
 
Top Bottom