班级主页设置班级为公开私有时刷新资源库页面

This commit is contained in:
cxt 2016-08-26 15:11:57 +08:00
parent eb20ca4ffe
commit cdffaed1ea
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@
$("#course_is_public").attr("checked",true);
<% end %>
}
if(document.getElementById("course_list")) {
window.location.href = "<%=course_files_path(@course) %>";
}
<% else %>
<% if @course.is_public? %>
$("#show_course_<%= @course.id %>").attr("title","公开班级:<%= @course.name %><%= @course.time.to_s+ @course.term %>");