forked from MarseyWorld/MarseyWorld
clear message field after submitting it
parent
c2bb3303e1
commit
78e1bf9784
|
@ -115,6 +115,8 @@ function submitFormAjax(e) {
|
||||||
myToast.show();
|
myToast.show();
|
||||||
document.getElementById('toast-post-error-text').innerText = data["error"];
|
document.getElementById('toast-post-error-text').innerText = data["error"];
|
||||||
if (data && data["details"]) document.getElementById('toast-post-error-text').innerText = data["details"];
|
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) {
|
} catch(e) {
|
||||||
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
var myToast = bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success'));
|
||||||
myToast.hide();
|
myToast.hide();
|
||||||
|
|
Loading…
Reference in New Issue