diff options
author | Go MAEDA <maeda@farend.jp> | 2019-10-22 05:03:02 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-10-22 05:03:02 +0000 |
commit | 5b9cede7099995e7ee860dde51be52c280f75edb (patch) | |
tree | 8474d0da1c7115d6ced7c78f13cc83091326235d /app/views/queries | |
parent | b34bd4e6a74f2685f9c43e55ec7465babcd62c4b (diff) | |
download | redmine-5b9cede7099995e7ee860dde51be52c280f75edb.tar.gz redmine-5b9cede7099995e7ee860dde51be52c280f75edb.zip |
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
Diffstat (limited to 'app/views/queries')
-rw-r--r-- | app/views/queries/_form.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb index 12a1d0202..953a296bc 100644 --- a/app/views/queries/_form.html.erb +++ b/app/views/queries/_form.html.erb @@ -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 %> |