summaryrefslogtreecommitdiffstats
path: root/app/views/queries
diff options
context:
space:
mode:
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 %>