修改《加入分组后分组人数未改变》bug

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-12-05 16:44:05 +08:00
parent 747fb84ef6
commit 63a9fcd483
3 changed files with 4 additions and 2 deletions

View File

@ -243,6 +243,7 @@ class CoursesController < ApplicationController
member.save
@group = group
@members = searchStudent(@course)
@course_groups = @course.course_groups
@membercount = @members.count
search_group_members group
end
@ -252,6 +253,7 @@ class CoursesController < ApplicationController
member.course_group_id = 0
member.save
@group = group
@course_groups = @course.course_groups
@members = searchStudent(@course)
@membercount = @members.count
search_group_members group

View File

@ -1,2 +1,2 @@
$("#st_groups").html("<%= escape_javascript( render :partial => 'groups_name', locals: {:course_groups => @course_groups})%>");
$("#member_content").html("<%= escape_javascript( render :partial => @render_file, :locals => {:members => @results})%>");

View File

@ -1,2 +1,2 @@
$("#st_groups").html("<%= escape_javascript( render :partial => 'groups_name', locals: {:course_groups => @course_groups})%>");
$("#member_content").html("<%= escape_javascript( render :partial => @render_file, :locals => {:members => @results})%>");