Patch #4623 » filters-collapsed.patch.txt
1 |
Index: app/views/issues/index.rhtml |
---|---|
2 |
=================================================================== |
3 |
--- app/views/issues/index.rhtml (revision 3335) |
4 |
+++ app/views/issues/index.rhtml (working copy) |
5 |
@@ -11,9 +11,9 @@ |
6 |
<% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %> |
7 |
<%= hidden_field_tag('project_id', @project.to_param) if @project %> |
8 |
<div id="query_form_content"> |
9 |
- <fieldset id="filters" class="collapsible"> |
10 |
+ <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
11 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
12 |
- <div> |
13 |
+ <div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
14 |
<%= render :partial => 'queries/filters', :locals => {:query => @query} %> |
15 |
</div> |
16 |
</fieldset> |
- « Previous
- 1
- 2
- Next »