aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-08-25 18:56:32 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-08-25 18:56:32 +0200
commit133212f106d8032370e18d4b6f16a52bf5e92206 (patch)
tree606432a125bb3e453ecaecc167258c9ca0c2cfe7 /sonar-server/src
parent803852e83b6e8bdc7c2b012ae9f59033842381f2 (diff)
downloadsonarqube-133212f106d8032370e18d4b6f16a52bf5e92206.tar.gz
sonarqube-133212f106d8032370e18d4b6f16a52bf5e92206.zip
SONAR-2702 Turn delete link into a button
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/project/exclusions.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/exclusions.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/exclusions.html.erb
index 19161bb8b50..44130a13176 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/exclusions.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/exclusions.html.erb
@@ -28,8 +28,9 @@
<span class="note"><ul><li>com/mycompany/**/*.java</li><li>**/*Dummy.java</li></ul></span>
</td></tr>
<tr><td class=left>
- <%= submit_tag( "Save filters", :id => 'submit_exclusions') %>
- <%= link_to 'Delete all filters', {:action => 'delete_exclusions', :id => @project.id}, :method => 'POST', :confirm => "Are you sure you want to delete all exclusion filters ?", :id => 'delete_exclusions' %>
+ <%= submit_tag( "Save exclusion filters", :id => 'submit_exclusions') %>
+ <input type="submit" value="Delete all exclusion filters" id="delete_exclusions" class="action red-button"
+ onclick="if (confirm('Are you sure you want to delete all exclusion filters ?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = '<%= url_for :action => "delete_exclusions", :id => @project.id -%>';f.submit(); };return false;">
</td></tr>
</table>
<% end %>