diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:34:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:34:44 +0000 |
commit | a80b909cc8f7f0ca47744093ff0decaaa45f2264 (patch) | |
tree | b9708ef62d92b36f8ed0346f2099b5c589d8e2dc /app/views/calendars | |
parent | cf8d19592995b4ca55b0a113a0645edd5f917345 (diff) | |
download | redmine-a80b909cc8f7f0ca47744093ff0decaaa45f2264.tar.gz redmine-a80b909cc8f7f0ca47744093ff0decaaa45f2264.zip |
Converted issue filters to non-AJAX GET requests (#1965).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5276 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/calendars')
-rw-r--r-- | app/views/calendars/show.html.erb | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index b2d1c5cd2..0b9d67727 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -1,7 +1,7 @@ <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2> -<% form_tag(calendar_path, :method => :put, :id => 'query_form') do %> - <%= hidden_field_tag('project_id', @project.to_param) if @project%> +<% form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %> +<%= hidden_field_tag 'set_filter', '1' %> <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> <div style="<%= @query.new_record? ? "" : "display: none;" %>"> @@ -10,7 +10,7 @@ </fieldset> <p style="float:right;"> - <%= link_to_previous_month(@year, @month, :project => @project) %> | <%= link_to_next_month(@year, @month, :project => @project) %> + <%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %> </p> <p class="buttons"> @@ -19,17 +19,8 @@ <%= label_tag('year', l(:label_year)) %> <%= select_year(@year, :prefix => "year", :discard_type => true) %> -<%= link_to_remote l(:button_apply), - { :url => { :set_filter => 1 }, - :update => "content", - :with => "Form.serialize('query_form')" - }, :class => 'icon icon-checked' %> - -<%= link_to_remote l(:button_clear), - { :url => { :project_id => @project, :set_filter => 1 }, - :method => :put, - :update => "content", - }, :class => 'icon icon-reload' %> +<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> +<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> </p> <% end %> |