]> source.dussan.org Git - redmine.git/commitdiff
Merged r3529 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 14:10:01 +0000 (14:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 11 Apr 2010 14:10:01 +0000 (14:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3641 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/index.rhtml

index 5b8fa05a7585fefcc5b04652671040185feed1e2..eac177c896655d1a1abee2815ceafad43b64b344 100644 (file)
@@ -11,9 +11,9 @@
 <% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
     <%= hidden_field_tag('project_id', @project.to_param) if @project %>
                <div id="query_form_content">
-    <fieldset id="filters" class="collapsible">
+    <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
        <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
-       <div>
+       <div style="<%= @query.new_record? ? "" : "display: none;" %>">
                <%= render :partial => 'queries/filters', :locals => {:query => @query} %>
        </div>
     </fieldset>