2013-11-05 20:46:38 +08:00
|
|
|
$("#<%=object_id%>").replaceWith('<%= escape_javascript join_in_course_for_list(course, user) %>');
|
2013-09-15 16:49:19 +08:00
|
|
|
<% if @state %>
|
|
|
|
<% if @state == 0 %>
|
2013-10-24 20:36:57 +08:00
|
|
|
alert("加入成功")
|
2014-03-17 22:43:38 +08:00
|
|
|
<% elsif @state == 1 %>
|
2013-10-24 20:36:57 +08:00
|
|
|
alert("密码错误")
|
2014-03-17 22:43:38 +08:00
|
|
|
<% elsif @state == 2 %>
|
|
|
|
alert("课程已过期")
|
|
|
|
<% else %>
|
|
|
|
alert("未知错误,请稍后再试")
|
2013-09-15 16:49:19 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|