To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / public / javascripts / datepicker.js @ 1586:d0d59d12db94
History | View | Annotate | Download (469 Bytes)
| 1 |
function beforeShowDatePicker(input, inst) { |
|---|---|
| 2 |
var default_date = null; |
| 3 |
switch ($(input).attr("id")) { |
| 4 |
case "issue_start_date" : |
| 5 |
if ($("#issue_due_date").size() > 0) { |
| 6 |
default_date = $("#issue_due_date").val(); |
| 7 |
} |
| 8 |
break;
|
| 9 |
case "issue_due_date" : |
| 10 |
if ($("#issue_start_date").size() > 0) { |
| 11 |
default_date = $("#issue_start_date").val(); |
| 12 |
} |
| 13 |
break;
|
| 14 |
} |
| 15 |
$(input).datepicker("option", "defaultDate", default_date); |
| 16 |
} |