1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-08 16:41:31 +00:00

Fix display type in query form view (#29482).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18790 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-10-22 05:03:02 +00:00
parent b34bd4e6a7
commit 5b9cede709
2 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ module QueriesHelper
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

View File

@ -107,13 +107,13 @@ $(document).ready(function(){
});
$(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 %>