@@ -1134,7 +1134,7 module ApplicationHelper | |||
|
1134 | 1134 | |
|
1135 | 1135 | def include_calendar_headers_tags |
|
1136 | 1136 | unless @calendar_headers_tags_included |
|
1137 | tags = javascript_include_tag("datepicker") | |
|
1137 | tags = ''.html_safe | |
|
1138 | 1138 | @calendar_headers_tags_included = true |
|
1139 | 1139 | content_for :header_tags do |
|
1140 | 1140 | start_of_week = Setting.start_of_week |
@@ -539,6 +539,23 function observeSearchfield(fieldId, targetId, url) { | |||
|
539 | 539 | }); |
|
540 | 540 | } |
|
541 | 541 | |
|
542 | function beforeShowDatePicker(input, inst) { | |
|
543 | var default_date = null; | |
|
544 | switch ($(input).attr("id")) { | |
|
545 | case "issue_start_date" : | |
|
546 | if ($("#issue_due_date").size() > 0) { | |
|
547 | default_date = $("#issue_due_date").val(); | |
|
548 | } | |
|
549 | break; | |
|
550 | case "issue_due_date" : | |
|
551 | if ($("#issue_start_date").size() > 0) { | |
|
552 | default_date = $("#issue_start_date").val(); | |
|
553 | } | |
|
554 | break; | |
|
555 | } | |
|
556 | $(input).datepicker("option", "defaultDate", default_date); | |
|
557 | } | |
|
558 | ||
|
542 | 559 | function initMyPageSortable(list, url) { |
|
543 | 560 | $('#list-'+list).sortable({ |
|
544 | 561 | connectWith: '.block-receiver', |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now