Removes calls to link_to_remote.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10030 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-18 17:34:11 +00:00
parent ccc5f64a99
commit bb2af97dcf
2 changed files with 4 additions and 14 deletions

View File

@ -35,14 +35,9 @@
"$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;",
:class => 'icon icon-edit'
) %>
<%= link_to_remote(
l(:button_delete),
{ :url => { :controller => 'groups',
:action => 'destroy_membership',
:id => @group,
:membership_id => membership },
:method => :post },
:class => 'icon icon-del' ) %>
<%= delete_link({:controller => 'groups', :action => 'destroy_membership', :id => @group, :membership_id => membership},
:remote => true,
:method => :post) %>
</td>
</tr>
<% end; reset_cycle %>

View File

@ -10,12 +10,7 @@
<tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
<td class="user"><%= link_to_user user %></td>
<td class="buttons">
<%= link_to_remote(
l(:button_delete),
{ :url => group_user_path(@group, :user_id => user),
:method => :delete },
:class => 'icon icon-del'
) %>
<%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
</td>
</tr>
<% end %>