2015-05-26 10:22:16 +08:00
|
|
|
<% if @statue == 1%>
|
|
|
|
alert('启动成功');
|
|
|
|
$("#<%= @homework.id %>_start_anonymous_comment").replaceWith('<%= escape_javascript(link_to "关闭匿评", alert_anonymous_comment_homework_common_path(@homework), remote: true, id:"#{@homework.id}_stop_anonymous_comment",:class => "fr mr10 work_edit")%>');
|
|
|
|
<% elsif @statue == 2 %>
|
|
|
|
alert('启动失败\n作业总数大于等于2份时才能启动匿评');
|
|
|
|
<% elsif @statue == 3%>
|
|
|
|
alert("已开启匿评,请务重复开启");
|
2015-06-29 10:59:39 +08:00
|
|
|
<% elsif @statue == 4%>
|
2015-05-26 10:22:16 +08:00
|
|
|
alert("您没有权限开启匿评");
|
2015-06-29 10:59:39 +08:00
|
|
|
<% elsif @statue == 5%>
|
|
|
|
alert("作业提交截止之后才能启动匿评");
|
2015-05-26 10:22:16 +08:00
|
|
|
<% end %>
|