添加学生的代码优化
This commit is contained in:
parent
d0d133668c
commit
e1cbc8015f
|
|
@ -51,5 +51,8 @@
|
|||
<div class="cl"></div>
|
||||
|
||||
</div>
|
||||
<div id="ajax-indicator" style="display:none;">
|
||||
<span>载入中...</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<% else%>
|
||||
<% if params[:membership][:role_ids][0] == '10' %>
|
||||
notice_box("添加成功");
|
||||
$(".stud-class-set .news .container .member .people .left ul li[data-option='allstudent']").click();
|
||||
$.get('/courses/<%= @course.id %>/all_student_list');
|
||||
<% else %>
|
||||
notice_box_redirect('<%= settings_course_path(@course, :tab => 'member') %>',"添加成功");
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
<% else %>
|
||||
notice_box("删除成功");
|
||||
<% if params[:group_id] == '0' %>
|
||||
$(".stud-class-set .news .container .member .people .left ul li[data-option='allstudent']").click();
|
||||
$.get('/courses/<%= @course.id %>/all_student_list');
|
||||
<% else %>
|
||||
$(".stud-class-set .news .container .member .people .left ul li[data-option='noclass']").click();
|
||||
$.get('/courses/<%= @course.id %>/no_group_student_list');
|
||||
<% end %>
|
||||
$("#all_teacher_list_ul").html("<%= j(render :partial => 'courses/settings/all_teacher_list_ul') %>");
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue