summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-09 20:46:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-09 20:46:44 +0000
commitc7c062a981f14b256eb19a68664b08f21e5e8cc7 (patch)
treecb9bbcefa7d932ede84ad38c549ac6510215cda2
parenta0ca199922f9864f15cd4a53b5f2028d6e01095c (diff)
downloadredmine-c7c062a981f14b256eb19a68664b08f21e5e8cc7.tar.gz
redmine-c7c062a981f14b256eb19a68664b08f21e5e8cc7.zip
Cleanup select filter tag.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6215 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/queries/_filters.rhtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/queries/_filters.rhtml b/app/views/queries/_filters.rhtml
index d9b9bbf16..1b564c172 100644
--- a/app/views/queries/_filters.rhtml
+++ b/app/views/queries/_filters.rhtml
@@ -93,9 +93,7 @@ Event.observe(document,"dom:loaded", apply_filters_observer);
<div id="div_values_<%= field %>" style="display:none;">
<% case options[:type]
when :list, :list_optional, :list_status, :list_subprojects %>
- <select <%= "multiple=true" if query.values_for(field) and query.values_for(field).length > 1 %> name="v[<%= field %>][]" id="values_<%= field %>" style="vertical-align: top;">
- <%= options_for_select options[:values], query.values_for(field) %>
- </select>
+ <%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :id => "values_#{field}", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
<%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('#{field}');", :style => "vertical-align: bottom;" %>
<% when :date, :date_past %>
<%= text_field_tag "v[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3 %> <%= l(:label_day_plural) %>