Removes a call to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10027 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a49d50614f
commit
b0757bbdf6
|
@ -37,14 +37,9 @@
|
||||||
<%= link_to_function l(:button_edit),
|
<%= link_to_function l(:button_edit),
|
||||||
"$('member-#{member.id}-roles').hide(); $('member-#{member.id}-roles-form').show(); return false;",
|
"$('member-#{member.id}-roles').hide(); $('member-#{member.id}-roles-form').show(); return false;",
|
||||||
:class => 'icon icon-edit' %>
|
:class => 'icon icon-edit' %>
|
||||||
<%= link_to_remote(
|
<%= delete_link membership_path(member),
|
||||||
l(:button_delete),
|
:remote => true,
|
||||||
{ :url => membership_path(member),
|
:data => (!User.current.admin? && member.include?(User.current) ? {:confirm => l(:text_own_membership_delete_confirmation)} : {}) if member.deletable? %>
|
||||||
: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? %>
|
|
||||||
</td>
|
</td>
|
||||||
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
|
<%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue