aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 14:49:42 +0200
committerstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 14:56:56 +0200
commitc2f050c9f6e231a21e7d3e49932300f479cda745 (patch)
tree929b773cb98e917d2f3d016e879f0bfb26105879 /sonar-server
parent8dd38c6cf9bfe76b5a98b50785934ea03e5353df (diff)
downloadsonarqube-c2f050c9f6e231a21e7d3e49932300f479cda745.tar.gz
sonarqube-c2f050c9f6e231a21e7d3e49932300f479cda745.zip
SONAR-4673 Remove prototypejs from "System" administration console
(ghosts)
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb19
1 files changed, 13 insertions, 6 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 e141f0ef2b8..554e64be7da 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,12 +54,19 @@
</table>
<p style="margin: 15px 0">
- <% form_remote_tag( :url => {:action => 'delete_resources'}, :loading => "window.location='#{url_for :action => 'pending_deletions'}';") do %>
- <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">
- <% end %>
+ <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>
</p>
-
<% end %>
-
</div> \ No newline at end of file