This commit is contained in:
tanch0
2024-05-09 17:45:55 +05:45
parent bf885d6b4d
commit f2d75e95f2
3 changed files with 13 additions and 12 deletions

View File

@ -144,9 +144,15 @@
$('.quote-form-message').html('<div class="alert alert-success">' +
response.success + '</div>');
form.trigger('reset');
setTimeout(function() {
$('.quote-form-message').fadeOut();
}, 2000);
} else {
$('.quote-form-message').html('<div class="alert alert-danger">' +
response.error + '</div>');
setTimeout(function() {
$('.quote-form-message').fadeOut();
}, 2000);
}
},
error: function(xhr, status, error) {
@ -154,6 +160,9 @@
$('.quote-form-message').html(
'<div class="alert alert-danger">Error - ' + errorMessage +
'</div>');
setTimeout(function() {
$('.quote-form-message').fadeOut();
}, 2000);
},
complete: function() {
$('#loading').hide();