|
Lines 996-1002
$("#placeBookingModal").on("show.bs.modal", function (e) {
Link Here
|
| 996 |
elemDate.isAfter(trailStart) && |
996 |
elemDate.isAfter(trailStart) && |
| 997 |
elemDate.isSameOrBefore(trailEnd) |
997 |
elemDate.isSameOrBefore(trailEnd) |
| 998 |
) { |
998 |
) { |
| 999 |
trailDisable = true; |
999 |
// Only consider this a conflict if the disabled date is within the max date range |
|
|
1000 |
// (i.e., disabled due to booking conflict, not because it's beyond max date) |
| 1001 |
const maxDate = periodPicker.config |
| 1002 |
.maxDate |
| 1003 |
? dayjs( |
| 1004 |
periodPicker.config |
| 1005 |
.maxDate |
| 1006 |
) |
| 1007 |
: null; |
| 1008 |
if ( |
| 1009 |
!maxDate || |
| 1010 |
elemDate.isSameOrBefore(maxDate) |
| 1011 |
) { |
| 1012 |
trailDisable = true; |
| 1013 |
} |
| 1000 |
} |
1014 |
} |
| 1001 |
} |
1015 |
} |
| 1002 |
dayElem.classList.remove("leadDisable"); |
1016 |
dayElem.classList.remove("leadDisable"); |
| 1003 |
- |
|
|