diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 18:05:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 18:05:05 +0000 |
commit | d17b8dcc97f1509d4b4be99b0499862b2b0b3758 (patch) | |
tree | ba65261b1770b6a50675fb939adc6633a9b32e73 /public/javascripts | |
parent | 8ec62e9507e2e1e27d66b302805eab99970f3ebe (diff) | |
download | redmine-d17b8dcc97f1509d4b4be99b0499862b2b0b3758.tar.gz redmine-d17b8dcc97f1509d4b4be99b0499862b2b0b3758.zip |
Merged datepicker.js into application.js.
git-svn-id: http://svn.redmine.org/redmine/trunk@13752 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/application.js | 17 | ||||
-rw-r--r-- | public/javascripts/datepicker.js | 16 |
2 files changed, 17 insertions, 16 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index dc8837bbd..7a8317adb 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -539,6 +539,23 @@ function observeSearchfield(fieldId, targetId, url) { }); } +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); +} + function initMyPageSortable(list, url) { $('#list-'+list).sortable({ connectWith: '.block-receiver', diff --git a/public/javascripts/datepicker.js b/public/javascripts/datepicker.js deleted file mode 100644 index 9acae0cd4..000000000 --- a/public/javascripts/datepicker.js +++ /dev/null @@ -1,16 +0,0 @@ -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); -} |