班级分班:如图在某具体分班中,编辑某成员分班为“暂无”或其他分班,原始分班列表未自动刷新
This commit is contained in:
parent
eeacd76aa9
commit
f9d12758d4
|
@ -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})%>");
|
||||||
|
|
Loading…
Reference in New Issue