修复作业列表报错

修复2个关闭按钮
This commit is contained in:
sw 2014-11-07 10:39:17 +08:00
parent 759d69892e
commit ffaa9c51ba
2 changed files with 4 additions and 11 deletions

View File

@ -45,13 +45,6 @@
<body>
<div id="popbox02">
<div class="alert" style="position: fixed;">
<div>
<span class="close02" style="display: block;" onclick="pupclose()"></span>
</div>
</div> <!---- alert end---->
<div class="ni_con">
<% if @bid.comment_status == 0%>
<h2>开启匿评功能</h2>

View File

@ -106,12 +106,12 @@
<% if (User.current.admin?||User.current.id==@bid.author_id) %>
<tr>
<td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2">
<span id="<%=bid.id %>_anonymous_comment">
<% case bid.comment_status %>
<span id="<%=@bid.id %>_anonymous_comment">
<% case @bid.comment_status %>
<% when 0 %>
<%= link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %>
<%= link_to '启动匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %>
<% when 1 %>
<%= link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true %>
<%= link_to '关闭匿评', alert_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_stop_anonymous_comment", remote: true %>
<% when 2 %>
匿评结束
<% end %>