Skip to content

Commit aa3bbdf

Browse files
Call global methods in appointments modal
1 parent ca66429 commit aa3bbdf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎assets/js/components/appointments_modal.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ App.Components.AppointmentsModal = (function () {
8080
*/
8181
$saveAppointment.on('click', () => {
8282
// Before doing anything the appointment data need to be validated.
83-
if (!validateAppointmentForm()) {
83+
if (!App.Components.AppointmentsModal.validateAppointmentForm()) {
8484
return;
8585
}
8686

@@ -165,7 +165,7 @@ App.Components.AppointmentsModal = (function () {
165165
$insertAppointment.on('click', () => {
166166
$('.popover').remove();
167167

168-
resetModal();
168+
App.Components.AppointmentsModal.resetModal();
169169

170170
// Set the selected filter item and find the next appointment time as the default modal values.
171171
if ($selectFilterItem.find('option:selected').attr('type') === 'provider') {
@@ -580,5 +580,6 @@ App.Components.AppointmentsModal = (function () {
580580

581581
return {
582582
resetModal,
583+
validateAppointmentForm,
583584
};
584585
})();

0 commit comments

Comments
 (0)