Fix link appointment form

Fix form filling when open an appointment from a link
This commit is contained in:
wolfygit 2020-01-17 12:13:41 +01:00 committed by Alex Tselegidis
parent 383b664664
commit 3458744933

View file

@ -318,7 +318,10 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
});
});
});
// If the appointment is opened from a link it triggers the previous function to fill the form
if (window.location.href.indexOf("backend/index/") > -1) {
$('#select-service').change();
}
/**
* Event: Enter New Customer Button "Click"
*/