summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 17:01:23 +0200
committerstephenbroyer <stephen.broyer@sonarsource.com>2013-09-24 10:43:34 +0200
commit611bb858911e81299d528ebd1dc7ba8681a3c208 (patch)
tree5e694f239fd013554aa07803409410c9d4e606d8
parent3800995f1fb03adb3c12fb11f3dfb90916f0b7e7 (diff)
downloadsonarqube-611bb858911e81299d528ebd1dc7ba8681a3c208.tar.gz
sonarqube-611bb858911e81299d528ebd1dc7ba8681a3c208.zip
SONAR-4674 Remove prototypejs from project configuration pages
(project deletion)
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb17
1 files changed, 14 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb
index fb02aa93915..c0023528bf9 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/deletion.html.erb
@@ -7,13 +7,24 @@
<br/>
<div class="yui-g widget" id="widget_delete_project">
<div class="warning">
- <% form_remote_tag( :url => {:action => 'delete', :id => @project.id}, :method => :delete,
- :loading => "window.location='#{url_for :action => 'pending_deletion', :id => @project.id}';") do %>
+ <form onsubmit="
+ $j.ajax({
+ url:'<%= url_for(:action => 'delete',:id => @project.id)-%>',
+ success:function(request) {
+ window.location='<%= url_for(:action => 'pending_deletion',:id => @project.id)-%>';
+ },
+ data:$j(this).serialize(),
+ type:'delete'
+ });
+ return false;"
+ method="delete"
+ action="<%= url_for(:action => 'delete',:id => @project.id)-%>">
+
<%= message('project_deletion.operation_cannot_be_undone') -%>
<br/>
<%= submit_tag delete_resource_message, :id => 'delete_resource', :class => 'action red-button',
:confirm => message('project_deletion.delete_resource_confirmation', :params => resource_name) %>
- <% end %>
+ </form>
</div>
</div>
<% end %> \ No newline at end of file