diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-19 08:14:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-19 08:14:48 +0000 |
commit | 9619aa98147cbb91c2650bc1eb08f2964a1bddd9 (patch) | |
tree | 6be81b0c914174f3d2ec7a5e206a930e86112e6d /public | |
parent | 21e551369cefe1828fa178aec65904a72eb2510e (diff) | |
download | redmine-9619aa98147cbb91c2650bc1eb08f2964a1bddd9.tar.gz redmine-9619aa98147cbb91c2650bc1eb08f2964a1bddd9.zip |
Merged r14967 to r14969 (#21488).
git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14983 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 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; } |