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 %>
|
2012-09-02 14:08:51 +04:00
|
|
|
alert('<%= raw(escape_javascript(l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', ')))) %>');
|
2012-07-19 20:57:59 +04:00
|
|
|
<% end %>
|