diff options
Diffstat (limited to 'app/views/principal_memberships/update.js.erb')
-rw-r--r-- | app/views/principal_memberships/update.js.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/principal_memberships/update.js.erb b/app/views/principal_memberships/update.js.erb new file mode 100644 index 000000000..2986c4e55 --- /dev/null +++ b/app/views/principal_memberships/update.js.erb @@ -0,0 +1,6 @@ +<% if @membership.valid? %> + $('#tab-content-memberships').html('<%= escape_javascript(render :partial => 'principal_memberships/index', :locals => {:principal => @principal}) %>'); + $("#member-<%= @membership.id %>").effect("highlight"); +<% else %> + alert('<%= raw(escape_javascript(l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', ')))) %>'); +<% end %> |