mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
Select appointment time from within the calendar when "all" select filter item is selected.
This commit is contained in:
parent
5df3e63055
commit
b6e9a7209f
1 changed files with 7 additions and 5 deletions
|
@ -1489,12 +1489,14 @@ App.Utils.CalendarDefaultView = (function () {
|
||||||
(availableProvider) => Number(availableProvider.id) === Number($selectFilterItem.val())
|
(availableProvider) => Number(availableProvider.id) === Number($selectFilterItem.val())
|
||||||
);
|
);
|
||||||
|
|
||||||
service = vars('available_services').find(
|
if (provider) {
|
||||||
(availableService) => provider.services.indexOf(availableService.id) !== -1
|
service = vars('available_services').find(
|
||||||
);
|
(availableService) => provider.services.indexOf(availableService.id) !== -1
|
||||||
|
);
|
||||||
|
|
||||||
if (service) {
|
if (service) {
|
||||||
$appointmentsModal.find('#select-service').val(service.id);
|
$appointmentsModal.find('#select-service').val(service.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$appointmentsModal.find('#select-service').val()) {
|
if (!$appointmentsModal.find('#select-service').val()) {
|
||||||
|
|
Loading…
Reference in a new issue