diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-20 10:07:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-20 10:07:11 +0000 |
commit | 85db02d486d658c1d0e83f915a39fac5a6ed6b27 (patch) | |
tree | 65dd0f0fb3883e7423d721f28c336185773cfe06 /app/views/queries/_columns.html.erb | |
parent | 06bc4e50ef5742c33b266b785bd0c49d6216dd07 (diff) | |
download | redmine-85db02d486d658c1d0e83f915a39fac5a6ed6b27.tar.gz redmine-85db02d486d658c1d0e83f915a39fac5a6ed6b27.zip |
Allows double click to move columns between available/selected columns.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7865 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries/_columns.html.erb')
-rw-r--r-- | app/views/queries/_columns.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ <br /> <%= 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);" %> </td> <td align="center" valign="middle"> <input type="button" value="→" @@ -18,7 +19,8 @@ <br /> <%= 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);" %> </td> <td align="center" valign="middle"> <input type="button" value="↑" onclick="moveOptionUp(this.form.selected_columns);" /><br /> |