How to Clear Added Field After Quick Reply Submit

Snog

Well-known member
I've added a couple of text input fields to the quick reply template and all works as it should from the PHP aspect of what I'm doing.

But, I'm having trouble clearing those fields after the quick reply is submitted.

I know how to do it by using javascript and adding onclick="submitForm()" to the post reply button and that works, BUT when I do it that way I lose the ability to display pop-up error messages.

I am assuming it has something to do with AJAX and I'm missing where that is processed.

Any ideas on how to clear those fields and retain the pop-up error messages?
 
Now doesn't it figure that after 2 days of trying to hunt this down I find it less than an hour after I post.

It's in discussion.js. :D
 
Top Bottom