班级分班:如图在某具体分班中,编辑某成员分班为“暂无”或其他分班,原始分班列表未自动刷新

This commit is contained in:
cxt 2016-11-22 11:29:45 +08:00
parent eeacd76aa9
commit f9d12758d4
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
<% if params[:group_id] != "0" %> <% if params[:group_id] != "0" %>
$("#member_li_<%=@member.id %>").html(""); var all_indexes = $("#member_li_<%=@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_<%=@member.id %>").remove();
<% end %> <% end %>
<% if @group && @group != "-1" %> <% if @group && @group != "-1" %>
//$("#member_content").html("<%#= escape_javascript( render :partial => 'new_member_list', :locals => {:members => @results})%>"); //$("#member_content").html("<%#= escape_javascript( render :partial => 'new_member_list', :locals => {:members => @results})%>");