diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-19 08:12:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-19 08:12:58 +0000 |
commit | 1560c9caa8f1538bd0e7bdae2a68b3a048f8c6db (patch) | |
tree | 986825d5ed819913826d60a0650610564c58a948 /public | |
parent | 60c75d850880ed086214784efd644def8d17798a (diff) | |
download | redmine-1560c9caa8f1538bd0e7bdae2a68b3a048f8c6db.tar.gz redmine-1560c9caa8f1538bd0e7bdae2a68b3a048f8c6db.zip |
Merged r14967 to r14969 (#21488).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@14982 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 3a2703990..9c6c7a47d 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -561,7 +561,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; } |