bigdir/app/views/groups/edit_membership.js.erb

7 lines
347 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<% if @membership.valid? %>
$('#tab-content-memberships').html('<%= escape_javascript(render :partial => 'groups/memberships') %>');
$('#member-<%= @membership.id %>').effect("highlight");
<% else %>
alert('<%= raw(escape_javascript(l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', ')))) %>');
<% end %>