summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-03 20:09:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-03 20:09:39 +0000
commitf2b227547e86370f044da124f6542c291f4f4edc (patch)
treea291166c4d07642bbc93a3ed2bb34cdc408f8673 /app
parentfe1e3ccd18420752979d817fac4408c780ba1da2 (diff)
downloadredmine-f2b227547e86370f044da124f6542c291f4f4edc.tar.gz
redmine-f2b227547e86370f044da124f6542c291f4f4edc.zip
Filters collapsed by default for saved queries (#4623).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3529 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/index.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml
index 5b8fa05a7..eac177c89 100644
--- a/app/views/issues/index.rhtml
+++ b/app/views/issues/index.rhtml
@@ -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>