2012-07-21 10:35:49 +04:00
|
|
|
<% if @membership.valid? %>
|
2012-07-22 17:29:26 +04:00
|
|
|
$('#tab-content-memberships').html('<%= escape_javascript(render :partial => 'users/memberships') %>');
|
|
|
|
$("#member-<%= @membership.id %>").effect("highlight");
|
2012-07-21 10:35:49 +04:00
|
|
|
<% else %>
|
|
|
|
alert('<%= escape_javascript l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', ')) %>');
|
|
|
|
<% end %>
|