Merge pull request #1267 from jeroenvds/patch-1

Fix unavailability in calendar while booking
This commit is contained in:
Alex Tselegidis 2022-05-26 14:47:06 +02:00 committed by GitHub
commit 995b995aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,7 +295,7 @@ App.Http.Booking = (function () {
// Grey out unavailability dates.
$('#select-date .ui-datepicker-calendar td:not(.ui-datepicker-other-month)').each((index, td) => {
selectedDateMoment.set({day: index + 1});
selectedDateMoment.set({date: index + 1});
if (unavailabilityDates.indexOf(selectedDateMoment.format('YYYY-MM-DD')) !== -1) {
$(td).addClass('ui-datepicker-unselectable ui-state-disabled');
}