summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb26
1 files changed, 14 insertions, 12 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb
index 554e64be7da..a7a67894e28 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb
@@ -54,19 +54,21 @@
</table>
<p style="margin: 15px 0">
- <form onsubmit="
- $j.ajax ({
- url:'<%= url_for(:action => 'delete_resources') -%>',
- beforeSend:function(request){window.location='<%= url_for (:action => 'pending_deletions') -%>';},
- data: $j(this).serialize(),
- type:'post'
- });
- return false;"
- method="post"
- action="<%= url_for(:action => 'delete_resources') -%>">
- <input id="all_resources" type="hidden" value="" name="all_resources">
- <input id="delete_resources" class="action red-button" type="submit" name="commit" value="Delete all ghosts">
+ <form onsubmit="
+ $j.ajax ({
+ url:'<%= url_for(:action => 'delete_resources') -%>',
+ success:function(request){window.location='<%= url_for (:action => 'pending_deletions') -%>';},
+ data: $j(this).serialize(),
+ type:'post'
+ });
+ return false;"
+ method="post"
+ action="<%= url_for(:action => 'delete_resources') -%>">
+ <input type="hidden" id="all_resources" name="all_resources" value="<%= @ghosts.map {|r| r.id.to_s}.join(',') -%>"/>
+ <input id="delete_resources" class="action red-button" type="submit" value="<%= message('bulk_deletion.delete_all_ghosts') -%>" name="commit">
</form>
</p>
+
<% end %>
+
</div> \ No newline at end of file