summaryrefslogtreecommitdiffstats
path: root/app/views/queries
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-22 05:03:02 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-22 05:03:02 +0000
commit5b9cede7099995e7ee860dde51be52c280f75edb (patch)
tree8474d0da1c7115d6ced7c78f13cc83091326235d /app/views/queries
parentb34bd4e6a74f2685f9c43e55ec7465babcd62c4b (diff)
downloadredmine-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.erb6
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 %>