changed old ids of datepickers so that min/max dates available work.
This commit is contained in:
parent
a607951ed9
commit
bbe09164ae
@ -11,7 +11,7 @@ function startDpSelect(dateText, inst) {
|
||||
time = dateText.split("-");
|
||||
date = new Date(time[0], time[1] - 1, time[2]);
|
||||
|
||||
$("#end_date").datepicker("option", "minDate", date);
|
||||
$("#add_show_end_date").datepicker("option", "minDate", date);
|
||||
}
|
||||
|
||||
function endDpSelect(dateText, inst) {
|
||||
@ -20,7 +20,7 @@ function endDpSelect(dateText, inst) {
|
||||
time = dateText.split("-");
|
||||
date = new Date(time[0], time[1] - 1, time[2]);
|
||||
|
||||
$("#start_date").datepicker( "option", "maxDate", date);
|
||||
$("#add_show_start_date").datepicker( "option", "maxDate", date);
|
||||
}
|
||||
|
||||
function createDateInput(el, onSelect) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user