• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XenForo Quick Reply (discussions.js)

R

ragtek

Guest
#1
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.PNG
If a user creates the first response, it adds the comment UNDER my "no comment message"
comment2.PNG
 
R

ragtek

Guest
#2
Or is there a way to call a callback class, after the comments were inserted? Then i could hide them via javascript
 

Jeremy

Well-known member
#4
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.