From b0757bbdf686807ec62a4d999e951eb33ec276ff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 18 Jul 2012 16:36:08 +0000 Subject: [PATCH] Removes a call to link_to_remote. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10027 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings/_members.html.erb | 11 +++-------- 1 file 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? %> <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>