parent
54aae26cbe
commit
be500eb0d2
@ -0,0 +1,29 @@
|
||||
<script type="text/javascript">
|
||||
function clickOK()
|
||||
{
|
||||
hideModal("#alert_div");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "<%= bid.comment_status == 0 ? start_anonymous_comment_bid_path(bid) : stop_anonymous_comment_bid_path(bid)%>",
|
||||
data: 'text',
|
||||
success: function (data) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
function clickCanel(){hideModal("#alert_div");}
|
||||
</script>
|
||||
|
||||
<div id="alert_div">
|
||||
<% if @bid.comment_status == 0%>
|
||||
<p>
|
||||
目前<%= totle_size%>个学生,总共提交了<%= cur_size %>份作业,占<%= percent %>
|
||||
</p>
|
||||
<% elsif @bid.comment_status == 1%>
|
||||
<p>
|
||||
目前总共分配了目前总共分配了<%= totle_size%>份匿评作业,已评价<%= cur_size %>份作业,占<%= percent %>
|
||||
</p>
|
||||
<% end %>
|
||||
<a onclick="clickOK();">确定</a>
|
||||
<a onclick="clickCanel();">取消</a>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'alert_anonyoms', locals: { bid: @bid, totle_size:@totle_size, cur_size:@cur_size, percent:@percent}) %>');
|
||||
showModal('ajax-modal', '513px');
|
||||
$('#ajax-modal').css('height','569px');
|
||||
$('#ajax-modal').siblings().remove();
|
||||
$('#ajax-modal').before("<span style='float: right;cursor:pointer;padding-left: 513px;'>" +
|
||||
"<a href='#' onclick='hidden_homework_atert_form("+
|
||||
<%= @cur_page%> + "," + <%= @cur_type%> +
|
||||
");'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
||||
$('#ajax-modal').parent().css("top","").css("left","");
|
||||
$('#ajax-modal').parent().addClass("alert_box");
|
@ -1,2 +1,2 @@
|
||||
alert('关闭成功')
|
||||
$("#<%= @bid.id %>_anonymous_comment").html('已关闭匿评')
|
||||
alert('关闭成功');
|
||||
$("#<%= @bid.id %>_anonymous_comment").html('匿评结束');
|
||||
|
Loading…
Reference in new issue