diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 8d1f8d56a..558235fa6 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -555,7 +555,13 @@ function beforeShowDatePicker(input, inst) { break; case "issue_due_date" : if ($("#issue_start_date").size() > 0) { - default_date = $("#issue_start_date").val(); + var start_date = $("#issue_start_date").val(); + if (start_date != "") { + start_date = new Date(Date.parse(start_date)); + if (start_date > new Date()) { + default_date = $("#issue_start_date").val(); + } + } } break; } |