add html_safe to prevent escaping

pull/920/head
Jonas Heinrich 11 years ago
parent 3cca202fe6
commit b1faae67eb
  1. 2
      app/views/groups/change_memberships.js.erb

@ -31,5 +31,5 @@ See doc/COPYRIGHT.rdoc for more details.
jQuery('#tab-content-memberships').html('<%= escape_javascript render(:partial => 'memberships') %>');
jQuery('#member-<%= @membership.id %>').effect("highlight", {}, 2000);
<% else %>
alert('<%= escape_javascript(l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', '))) %>');
alert('<%= escape_javascript(l(:notice_failed_to_save_members, :errors => @membership.errors.full_messages.join(', '))).html_safe %>');
<% end %>

Loading…
Cancel
Save