Use class instead of fading out the error message

This commit is contained in:
Alex Tselegidis 2024-05-29 23:15:07 +02:00
parent 81a2f65e87
commit 99addd2efd

View file

@ -444,7 +444,7 @@ App.Components.AppointmentsModal = (function () {
function resetModal() { function resetModal() {
// Empty form fields. // Empty form fields.
$appointmentsModal.find('input, textarea').val(''); $appointmentsModal.find('input, textarea').val('');
$appointmentsModal.find('.modal-message').fadeOut(); $appointmentsModal.find('.modal-message').addClass('.d-none');
const defaultStatusValue = $appointmentStatus.find('option:first').val(); const defaultStatusValue = $appointmentStatus.find('option:first').val();
$appointmentStatus.val(defaultStatusValue); $appointmentStatus.val(defaultStatusValue);