11 lines
661 B
Plaintext
11 lines
661 B
Plaintext
<% if @statue == 1%>
|
||
alert('启动成功');
|
||
$("#<%= @bid.id %>_start_anonymous_comment").remove();
|
||
$("#<%= @bid.id %>_anonymous_comment").append('<%= link_to "关闭匿评", stop_anonymous_comment_bid_path(@bid), remote: true, id:"#{@bid.id}_stop_anonymous_comment" %>');
|
||
$("#<%= @bid.id%>_stop_anonymous_comment").attr("data-confirm","关闭匿评后学生将不能对作业进行评分,且学生作业列表将会被公开\n是否确定关闭匿评?");
|
||
<% elsif @statue == 2 %>
|
||
alert('启动失败\n作业总数大于等于2份时才能启动匿评');
|
||
<% elsif @statue == 3%>
|
||
alert("已开启匿评,请务重复开启");
|
||
<% end %>
|