You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/courses/member.js.erb

9 lines
481 B

<% if params[:role] == 't' %>
$("#member_student_list").html("<%= j(render :partial => 'member_teacher_list') %>");
<% elsif params[:role] == 'as' %>
$("#member_student_list").html("<%= j(render :partial => 'member_all_student_list') %>");
<% elsif params[:role] == 'ns' %>
$("#member_student_list").html("<%= j(render :partial => 'member_no_group_student_list') %>");
<% else %>
$("#member_student_list").html("<%= j(render :partial => 'member_group_student_list') %>");
<% end %>