summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 17:34:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 17:34:11 +0000
commitbb2af97dcf4ba9372ce78ba8163cc3dc2794a7bb (patch)
tree4bdafdb6e1bb058b91b85ae0c903f75fcf245a6b
parentccc5f64a99731b63ae1569ca34f5564b84d8d2ac (diff)
downloadredmine-bb2af97dcf4ba9372ce78ba8163cc3dc2794a7bb.tar.gz
redmine-bb2af97dcf4ba9372ce78ba8163cc3dc2794a7bb.zip
Removes calls to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10030 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/groups/_memberships.html.erb11
-rw-r--r--app/views/groups/_users.html.erb7
2 files changed, 4 insertions, 14 deletions
diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb
index 79b990c84..1b72f0d81 100644
--- a/app/views/groups/_memberships.html.erb
+++ b/app/views/groups/_memberships.html.erb
@@ -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 %>
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index 5d10fe694..58d328814 100644
--- a/app/views/groups/_users.html.erb
+++ b/app/views/groups/_users.html.erb
@@ -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 %>