forked from mirrors/easyappointments
Merge pull request #1267 from jeroenvds/patch-1
Fix unavailability in calendar while booking
This commit is contained in:
commit
995b995aba
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue