17 lines
469 B
JavaScript
17 lines
469 B
JavaScript
|
function beforeShowDatePicker(input, inst) {
|
||
|
var default_date = null;
|
||
|
switch ($(input).attr("id")) {
|
||
|
case "issue_start_date" :
|
||
|
if ($("#issue_due_date").size() > 0) {
|
||
|
default_date = $("#issue_due_date").val();
|
||
|
}
|
||
|
break;
|
||
|
case "issue_due_date" :
|
||
|
if ($("#issue_start_date").size() > 0) {
|
||
|
default_date = $("#issue_start_date").val();
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
$(input).datepicker("option", "defaultDate", default_date);
|
||
|
}
|