|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
<% if object_id%>
|
|
|
|
|
$("#join_in_course_header").html("<%= escape_javascript(join_in_course_header(course, user)) %>");
|
|
|
|
|
$("#try_join_course_link").replaceWith("<a href='<%=url_for(:controller => 'homework_common', :action => 'index',:course=>course.id, :host=>Setting.host_course)%>' target='_blank' class='blue_n_btn fr mt20'>提交作品</a>");
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @state %>
|
|
|
|
|
<% if @state == 0 %>
|
|
|
|
|
alert("加入成功");
|
|
|
|
|
hideModal($("#popbox02"));
|
|
|
|
|
$("#try_join_course_link").replaceWith("<a href='<%=url_for(:controller => 'homework_common', :action => 'index',:course=>course.id, :host=>Setting.host_course)%>' target='_blank' class='blue_n_btn fr mt20'>提交作品</a>");
|
|
|
|
|
<% elsif @state == 1 %>
|
|
|
|
|
alert("密码错误");
|
|
|
|
|
<% elsif @state == 2 %>
|
|
|
|
|