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}) %>