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

XF:2 - Add clear fields to message.js


Well-known member
To aid in clearing fields that might be added to the quick reply form, it would be nice if this was added to message.js in the XF.QuickReply afterSubmit section:
this.$target.find('input:not(:checkbox), select, textarea').val('');
I've tested it and it is working when added just before $target.trigger('draft:sync');
Last edited: