2012-07-22 17:29:26 +04:00
|
|
|
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'projects/settings/members') %>');
|
2012-07-21 10:35:11 +04:00
|
|
|
hideOnLoad();
|
|
|
|
|
|
|
|
<% if @members.present? && @members.all? {|m| m.valid? } %>
|
|
|
|
<% @members.each do |member| %>
|
2012-07-22 17:29:26 +04:00
|
|
|
$("#member-<%= member.id %>").effect("highlight");
|
2012-07-21 10:35:11 +04:00
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% errors = @members.collect {|m| m.errors.full_messages}.flatten.uniq.join(', ') %>
|
2012-09-02 14:08:51 +04:00
|
|
|
alert('<%= raw(escape_javascript(l(:notice_failed_to_save_members, :errors => errors))) %>');
|
2012-07-21 10:35:11 +04:00
|
|
|
<% end %>
|