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

cxt_course
cxt 9 years ago
parent eb20ca4ffe
commit cdffaed1ea

@ -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 %>");

Loading…
Cancel
Save