summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-19 12:26:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-19 12:26:19 +0000
commit5a35c5b2e2aa6c6770fe6911f7557b980a70bf05 (patch)
treea4b7bb4e6bf2ac62c3e0d412dfedcc81bcb981d8
parentb3bddcd31f76b0fa5c56d1a3971321e82f0715d1 (diff)
downloadredmine-5a35c5b2e2aa6c6770fe6911f7557b980a70bf05.tar.gz
redmine-5a35c5b2e2aa6c6770fe6911f7557b980a70bf05.zip
Fixed that date range fields don't get enabled when using the calendar popup (#8574).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9452 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/timelog/_date_range.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/timelog/_date_range.html.erb b/app/views/timelog/_date_range.html.erb
index d95dfab95..95e604dcf 100644
--- a/app/views/timelog/_date_range.html.erb
+++ b/app/views/timelog/_date_range.html.erb
@@ -12,7 +12,7 @@
<p>
<%= label_tag "period_type_interval", l(:description_date_range_interval), :class => "hidden-for-sighted" %>
<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");', :id => "period_type_interval" %>
-<span onclick="$('period_type_2').checked = true;">
+<span onclick="$('period_type_interval').checked = true;Form.Element.enable('from');Form.Element.enable('to');Form.Element.disable('period');">
<%= l(:label_date_from_to,
:start => ((label_tag "from", l(:description_date_from), :class => "hidden-for-sighted") +
text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),