删除课程成员
This commit is contained in:
parent
ed02959e00
commit
5640eae39b
|
@ -314,7 +314,8 @@ class MembersController < ApplicationController
|
|||
joined.each do |join|
|
||||
join.delete
|
||||
end
|
||||
|
||||
@roles = Role.givable.all[3..5]
|
||||
@members = @course.member_principals.includes(:roles, :principal).all.sort
|
||||
end
|
||||
respond_to do |format|
|
||||
format.html { redirect_to_settings_in_courses }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%if @project%>
|
||||
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'projects/settings/members') %>');
|
||||
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'projects/settings/members') %>');
|
||||
<%elsif @course%>
|
||||
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'courses/settings/members') %>');
|
||||
$('#tbc_02').html('<%= escape_javascript(render :partial => 'courses/course_members') %>');
|
||||
<%end%>
|
||||
hideOnLoad();
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<%if @project%>
|
||||
$('#tab-content-members').html('<%= escape_javascript(render :partial => 'projects/settings/members') %>');
|
||||
$("#member-<%= @member.id %>").effect("highlight");
|
||||
hideOnLoad();
|
||||
<%elsif @course%>
|
||||
$('#tbc_02').html('<%= escape_javascript(render :partial => 'courses/course_members') %>');
|
||||
hideOnLoad();
|
||||
<%end%>
|
||||
hideOnLoad();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue