班级学生列表:删除成员时,成员列表未自动刷新
This commit is contained in:
parent
896f8a2ac7
commit
fcadf65688
|
@ -1,5 +1,9 @@
|
||||||
hideModal();
|
hideModal();
|
||||||
$("#member_li_<%=params[:member_id] %>").html("");
|
var all_indexes = $("#member_li_<%=params[:member_id] %>").nextAll().find("td:first-child");
|
||||||
|
for(var i = 0; i < all_indexes.length; i++){
|
||||||
|
$(all_indexes[i]).html(parseInt($(all_indexes[i]).html()) - 1);
|
||||||
|
}
|
||||||
|
$("#member_li_<%=params[:member_id] %>").remove();
|
||||||
$("#st_groups").html("<%=escape_javascript(render :partial => 'new_groups_name', :locals => {:course_groups => @course_groups}) %>");
|
$("#st_groups").html("<%=escape_javascript(render :partial => 'new_groups_name', :locals => {:course_groups => @course_groups}) %>");
|
||||||
$("#group_children_list").html("<%= escape_javascript( render :partial => 'layouts/group_children_list', :locals => {:course => @course})%>");
|
$("#group_children_list").html("<%= escape_javascript( render :partial => 'layouts/group_children_list', :locals => {:course => @course})%>");
|
||||||
$("#student_number").html("<%= studentCount(@course) %>");
|
$("#student_number").html("<%= studentCount(@course) %>");
|
||||||
|
|
Loading…
Reference in New Issue