mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Hide the appointments modal after a successful appointment store method.
This commit is contained in:
parent
398b85363f
commit
79c9566257
1 changed files with 3 additions and 2 deletions
|
@ -116,7 +116,8 @@ App.Components.AppointmentsModal = (function () {
|
|||
App.Layouts.Backend.displayNotification(App.Lang.appointment_saved);
|
||||
|
||||
// Close the modal dialog and refresh the calendar appointments.
|
||||
$appointmentsModal.find('.alert').addClass('d-none').modal('hide');
|
||||
$appointmentsModal.find('.alert').addClass('d-none');
|
||||
$appointmentsModal.modal('hide');
|
||||
$selectFilterItem.trigger('change');
|
||||
};
|
||||
|
||||
|
@ -143,7 +144,7 @@ App.Components.AppointmentsModal = (function () {
|
|||
resetModal();
|
||||
|
||||
// Set the selected filter item and find the next appointment time as the default modal values.
|
||||
if ($$selectFilterItem.find('option:selected').attr('type') === 'provider') {
|
||||
if ($selectFilterItem.find('option:selected').attr('type') === 'provider') {
|
||||
const providerId = $('#select-filter-item').val();
|
||||
|
||||
const providers = App.Vars.available_providers.filter(
|
||||
|
|
Loading…
Reference in a new issue