diff options
Diffstat (limited to 'app/views/users/_memberships.html.erb')
-rw-r--r-- | app/views/users/_memberships.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/_memberships.html.erb b/app/views/users/_memberships.html.erb index 758064608..9a8241cb1 100644 --- a/app/views/users/_memberships.html.erb +++ b/app/views/users/_memberships.html.erb @@ -30,13 +30,13 @@ <%= hidden_field_tag 'membership[role_ids][]', '' %> <p><%= submit_tag l(:button_change) %> <%= link_to_function l(:button_cancel), - "$('member-#{membership.id}-roles').show(); $('member-#{membership.id}-roles-form').hide(); return false;" + "$('#member-#{membership.id}-roles').show(); $('#member-#{membership.id}-roles-form').hide(); return false;" %></p> <% end %> </td> <td class="buttons"> <%= link_to_function l(:button_edit), - "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", + "$('#member-#{membership.id}-roles').hide(); $('#member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %> <%= delete_link user_membership_path(@user, membership), :remote => true if membership.deletable? %> |