summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 16:36:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 16:36:08 +0000
commitb0757bbdf686807ec62a4d999e951eb33ec276ff (patch)
tree80b66b4f3040ee9b6e4a7020f0950c6c0b2595c6
parenta49d50614fa520d1f82525551209bd22b5344b63 (diff)
downloadredmine-b0757bbdf686807ec62a4d999e951eb33ec276ff.tar.gz
redmine-b0757bbdf686807ec62a4d999e951eb33ec276ff.zip
Removes a call to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10027 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/projects/settings/_members.html.erb11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb
index 8ce9cf3de..83fd3ae3f 100644
--- a/app/views/projects/settings/_members.html.erb
+++ b/app/views/projects/settings/_members.html.erb
@@ -37,14 +37,9 @@
<%= link_to_function l(:button_edit),
"$('member-#{member.id}-roles').hide(); $('member-#{member.id}-roles-form').show(); return false;",
:class => 'icon icon-edit' %>
- <%= link_to_remote(
- l(:button_delete),
- { :url => membership_path(member),
- :method => :delete,
- :data => {:confirm => (!User.current.admin? && member.include?(User.current) ? l(:text_own_membership_delete_confirmation) : nil)} },
- :title => l(:button_delete),
- :class => 'icon icon-del'
- ) if member.deletable? %>
+ <%= delete_link membership_path(member),
+ :remote => true,
+ :data => (!User.current.admin? && member.include?(User.current) ? {:confirm => l(:text_own_membership_delete_confirmation)} : {}) if member.deletable? %>
</td>
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
</tr>