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:
parent
b34bd4e6a7
commit
5b9cede709
@ -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
|
||||
|
||||
@ -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 %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user