在项目设置中,添加或删除成员时,实时更新项目成员数量。
This commit is contained in:
parent
066d04016e
commit
fb692fad4c
|
@ -76,7 +76,7 @@
|
|||
|
||||
<!--参数-->
|
||||
<div class="pr_info_foot">
|
||||
<%= l(:label_member) %>(<%= link_to "#{@project.members.count}", project_member_path(@project), :class => 'info_foot_num c_blue' %>)
|
||||
<%= l(:label_member) %>(<%= link_to "#{@project.members.count}", project_member_path(@project), :class => 'info_foot_num c_blue', :id => 'project_members_number' %>)
|
||||
<span>| </span>
|
||||
<%= l(:label_user_watcher) %>(<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :class => 'info_foot_num c_blue' %>)
|
||||
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<% else%>
|
||||
$('#pro_st_tbc_03').html('<%= escape_javascript(render :partial => 'projects/settings/new_members') %>');
|
||||
hideOnLoad();
|
||||
$("#project_members_number").html("<%= @project.members.count %>");
|
||||
alert("<%= @succes_message%>");
|
||||
<% end%>
|
||||
<%elsif @course%>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<%if @project%>
|
||||
$('#pro_st_tbc_03').html('<%= escape_javascript(render :partial => 'projects/settings/new_members') %>');
|
||||
$("#project_members_number").html("<%= @project.members.count %>");
|
||||
// $('#tab-content-members').html('<%#= escape_javascript(render :partial => 'projects/settings/members') %>');
|
||||
<%elsif @course%>
|
||||
$('#course_members_setting').html('<%= escape_javascript(render :partial => 'courses/course_members') %>');
|
||||
|
|
Loading…
Reference in New Issue