diff --git a/app/views/queries/_columns.html.erb b/app/views/queries/_columns.html.erb index eb8511ae0..a996aa34c 100644 --- a/app/views/queries/_columns.html.erb +++ b/app/views/queries/_columns.html.erb @@ -5,7 +5,8 @@
<%= select_tag 'available_columns', options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), - :multiple => true, :size => 10, :style => "width:150px" %> + :multiple => true, :size => 10, :style => "width:150px", + :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %> <%= select_tag 'c[]', options_for_select(query.columns.collect {|column| [column.caption, column.name]}), - :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> + :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px", + :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);" %>