diff --git a/assets/js/components/appointments_modal.js b/assets/js/components/appointments_modal.js index 7470cd4f..91f80830 100755 --- a/assets/js/components/appointments_modal.js +++ b/assets/js/components/appointments_modal.js @@ -80,7 +80,7 @@ App.Components.AppointmentsModal = (function () { */ $saveAppointment.on('click', () => { // Before doing anything the appointment data need to be validated. - if (!validateAppointmentForm()) { + if (!App.Components.AppointmentsModal.validateAppointmentForm()) { return; } @@ -165,7 +165,7 @@ App.Components.AppointmentsModal = (function () { $insertAppointment.on('click', () => { $('.popover').remove(); - resetModal(); + App.Components.AppointmentsModal.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') { @@ -580,5 +580,6 @@ App.Components.AppointmentsModal = (function () { return { resetModal, + validateAppointmentForm, }; })();