# display the same page again and again
# => implicit render "pending_deletions.html.erb"
else
- redirect_to :action => 'index'
+ redirect_to :action => 'index', :resource_type => params[:resource_type]
end
end
# It is important to reinit the ResourceDeletionManager so that the deletion screens can be available again
ResourceDeletionManager.instance.reinit
- redirect_to :action => 'index'
+ redirect_to :action => 'index', :resource_type => params[:resource_type]
end
private
<%= message('no_results') -%>
<% else %>
- <% form_remote_tag( :url => {:action => 'delete_resources'}, :loading => "window.location='#{url_for :action => 'pending_deletions'}';") do %>
+ <% form_remote_tag( :url => {:action => 'delete_resources'}, :loading => "window.location='#{url_for :action => 'pending_deletions', :resource_type => @selected_tab}';") do %>
<table class="data" id="resources-to-delete">
<tfoot>