diff options
author | stephenbroyer <stephen.broyer@sonarsource.com> | 2013-09-23 15:44:15 +0200 |
---|---|---|
committer | stephenbroyer <stephen.broyer@sonarsource.com> | 2013-09-23 15:44:15 +0200 |
commit | 38b47dc6dec25d251a0b89498fd13de59931c1f6 (patch) | |
tree | 1ec75e2cc5f13c4b4ff81d4471493de771155f5d | |
parent | c2f050c9f6e231a21e7d3e49932300f479cda745 (diff) | |
download | sonarqube-38b47dc6dec25d251a0b89498fd13de59931c1f6.tar.gz sonarqube-38b47dc6dec25d251a0b89498fd13de59931c1f6.zip |
SONAR-4673 Remove prototypejs from "System" administration console
(ghosts RECTIFICATION)
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/ghosts.html.erb | 26 |
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 |