|
|
|
@ -10,12 +10,12 @@ window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/co
|
|
|
|
|
<% elsif @state == 1 %>
|
|
|
|
|
alert("密码错误");
|
|
|
|
|
<% elsif @state == 2 %>
|
|
|
|
|
alert("课程已过期\n请联系课程管理员重启课程。(在配置课程处)");
|
|
|
|
|
alert("班级已过期\n请联系班级管理员重启班级。(在配置班级处)");
|
|
|
|
|
<% elsif @state == 3 %>
|
|
|
|
|
alert("您已经加入了课程");
|
|
|
|
|
alert("您已经加入了班级");
|
|
|
|
|
window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/courses/" + "<%= @course.id%>"
|
|
|
|
|
<% elsif @state == 4 %>
|
|
|
|
|
alert("您加入的课程不存在");
|
|
|
|
|
alert("您加入的班级不存在");
|
|
|
|
|
<% elsif @state == 5 %>
|
|
|
|
|
alert("您还未登录");
|
|
|
|
|
<% elsif @state == 6 %>
|
|
|
|
@ -25,15 +25,15 @@ hidden_join_course_form();
|
|
|
|
|
alert("您已经发送过申请了,请耐心等待");
|
|
|
|
|
hidden_join_course_form();
|
|
|
|
|
<% elsif @state == 8%>
|
|
|
|
|
alert("您已经是该课程的教师了");
|
|
|
|
|
alert("您已经是该班级的教师了");
|
|
|
|
|
hidden_join_course_form();
|
|
|
|
|
window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/courses/" + "<%= @course.id%>"
|
|
|
|
|
<% elsif @state == 9%>
|
|
|
|
|
alert("您已经是该课程的教辅了");
|
|
|
|
|
alert("您已经是该班级的教辅了");
|
|
|
|
|
hidden_join_course_form();
|
|
|
|
|
window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/courses/" + "<%= @course.id%>"
|
|
|
|
|
<% elsif @state == 10%>
|
|
|
|
|
alert("您已经是该课程的管理员了");
|
|
|
|
|
alert("您已经是该班级的管理员了");
|
|
|
|
|
hidden_join_course_form();
|
|
|
|
|
window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/courses/" + "<%= @course.id%>"
|
|
|
|
|
<% else %>
|
|
|
|
|