shqawe
Member
- Affected version
- 2.3
After posting report successfully if you click the report button again you will see the message report still there and not cleared.
Some quick solutions i was tested it:
First solution:
I change
Second solution:
I create new js file with this code and i inject it to
Some quick solutions i was tested it:
First solution:
I change
data-skip-overlay-redirect
in report_create
template to false to refresh the page and clear form. Second solution:
I create new js file with this code and i inject it to
helper_js_global
template:
JavaScript:
((window, document) => {
"use strict";
XF.on(document, 'ajax-submit:response', form => {
if (form.data.status == 'ok') {
form.target.reset();
}
})
})(window, document);