mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Do not make a request to the server if there's no service or provider selection
This commit is contained in:
parent
b3fbf60e29
commit
46804fab7b
1 changed files with 4 additions and 0 deletions
|
@ -229,6 +229,10 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!providerId || !serviceId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var appointmentId = FrontendBook.manageMode ? GlobalVariables.appointmentData.id : null;
|
var appointmentId = FrontendBook.manageMode ? GlobalVariables.appointmentData.id : null;
|
||||||
|
|
||||||
var url = GlobalVariables.baseUrl + '/index.php/appointments/ajax_get_unavailable_dates';
|
var url = GlobalVariables.baseUrl + '/index.php/appointments/ajax_get_unavailable_dates';
|
||||||
|
|
Loading…
Reference in a new issue