diff --git a/files/assets/js/userpage_v.js b/files/assets/js/userpage_v.js index 7d8c9808c..521d2333e 100644 --- a/files/assets/js/userpage_v.js +++ b/files/assets/js/userpage_v.js @@ -115,6 +115,8 @@ function submitFormAjax(e) { myToast.show(); document.getElementById('toast-post-error-text').innerText = data["error"]; if (data && data["details"]) document.getElementById('toast-post-error-text').innerText = data["details"]; + document.getElementById('input-message').value = '' + document.getElementById('input-message-mobile').value = '' } catch(e) { var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')); myToast.hide(); @@ -127,4 +129,4 @@ function submitFormAjax(e) { xhr.send(formData); return false -} \ No newline at end of file +}