Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18790
e93f8b46-1217-0410-a6f0-
8f06a7374b81
tags = ''.html_safe
query.available_display_types.each do |t|
tags << radio_button_tag('display_type', t, @query.display_type == t, :id => "display_type_#{t}") +
- content_tag('label', l(:"label_display_type_#{t}"), :for => "display_type_#{t}")
+ content_tag('label', l(:"label_display_type_#{t}"), :for => "display_type_#{t}", :class => "inline")
end
tags
end
});
$(function ($) {
- $('#display_type').change(function (e) {
- var option = $(e.target).val()
+ $('input[name=display_type]').change(function () {
+ var option = $('input[name=display_type]:checked').val();
if (option == 'board') {
$('fieldset#columns, fieldset#sort, p#default_columns, p#group_by').hide();
} else {
$('fieldset#columns, fieldset#sort, p#default_columns, p#group_by').show();
}
- }).change()
+ }).change();
});
<% end %>