réplica de
https://github.com/redmine/redmine.git
synced 2024-08-18 14:10:15 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@13600 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 líneas
522 B
Plaintext
13 líneas
522 B
Plaintext
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'projects/settings/members') %>');
|
|
hideOnLoad();
|
|
|
|
<% if @members.present? && @members.all? {|m| m.valid? } %>
|
|
hideModal();
|
|
<% @members.each do |member| %>
|
|
$("#member-<%= member.id %>").effect("highlight");
|
|
<% end %>
|
|
<% elsif @members.present? %>
|
|
<% errors = @members.collect {|m| m.errors.full_messages}.flatten.uniq.join(', ') %>
|
|
alert('<%= raw(escape_javascript(l(:notice_failed_to_save_members, :errors => errors))) %>');
|
|
<% end %>
|