2014-10-16 11:55:42 +08:00
|
|
|
<% if object_id%>
|
|
|
|
$("#<%=object_id%>").replaceWith('<%= escape_javascript join_in_course_for_list(course, user) %>');
|
|
|
|
<% end %>
|
2013-09-15 16:49:19 +08:00
|
|
|
<% if @state %>
|
|
|
|
<% if @state == 0 %>
|
2014-10-17 08:59:14 +08:00
|
|
|
alert("加入成功");
|
2014-03-17 22:43:38 +08:00
|
|
|
<% elsif @state == 1 %>
|
2014-10-17 08:59:14 +08:00
|
|
|
alert("密码错误");
|
2014-03-17 22:43:38 +08:00
|
|
|
<% elsif @state == 2 %>
|
2014-10-17 08:59:14 +08:00
|
|
|
alert("课程已过期\n请联系课程管理员重启课程。(在配置课程处)");
|
2014-10-16 11:55:42 +08:00
|
|
|
<% elsif @state == 3 %>
|
|
|
|
alert("您已经加入了课程");
|
2014-10-17 08:59:14 +08:00
|
|
|
<% elsif @state == 4 %>
|
|
|
|
alert("您已经的课程不存在");
|
|
|
|
<% elsif @state == 4 %>
|
|
|
|
alert("您还未登录");
|
2014-10-16 11:55:42 +08:00
|
|
|
<% else %>
|
2014-10-17 08:59:14 +08:00
|
|
|
alert("未知错误,请稍后再试");
|
2013-09-15 16:49:19 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|