mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Fix unavailability in calendar while booking
Use moment set date for setting the day of the month. Day is used for day of the week.
This commit is contained in:
parent
6dce7b2f33
commit
148b5df302
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