修复作业列表报错

修复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> <body>
<div id="popbox02"> <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"> <div class="ni_con">
<% if @bid.comment_status == 0%> <% if @bid.comment_status == 0%>
<h2>开启匿评功能</h2> <h2>开启匿评功能</h2>

View File

@ -106,12 +106,12 @@
<% if (User.current.admin?||User.current.id==@bid.author_id) %> <% if (User.current.admin?||User.current.id==@bid.author_id) %>
<tr> <tr>
<td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2"> <td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2">
<span id="<%=bid.id %>_anonymous_comment"> <span id="<%=@bid.id %>_anonymous_comment">
<% case bid.comment_status %> <% case @bid.comment_status %>
<% when 0 %> <% 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 %> <% 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 %> <% when 2 %>
匿评结束 匿评结束
<% end %> <% end %>