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