Change max date of datepicker
to number of days in future as specified by the settings
This commit is contained in:
parent
a2dbd391b3
commit
469247bf73
@ -57,7 +57,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"modified": "2019-09-12 10:47:20.274330",
|
"modified": "2019-09-12 10:52:25.931931",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "CRM",
|
"module": "CRM",
|
||||||
"name": "Appointment Booking Settings",
|
"name": "Appointment Booking Settings",
|
||||||
|
|||||||
@ -43,7 +43,8 @@ function setup_date_picker() {
|
|||||||
let date_picker = document.getElementById('appointment-date');
|
let date_picker = document.getElementById('appointment-date');
|
||||||
let today = new Date();
|
let today = new Date();
|
||||||
date_picker.min = today.toISOString().substr(0, 10);
|
date_picker.min = today.toISOString().substr(0, 10);
|
||||||
date_picker.max = window.holiday_list.to_date;
|
today.setDate(today.getDate() + window.appointment_settings.advance_booking_days);
|
||||||
|
date_picker.max = today.toISOString().substr(0,10);
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide_next_button(){
|
function hide_next_button(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user