作业评分设置时比例NAN

This commit is contained in:
cxt 2016-04-21 17:01:57 +08:00
parent 16348654a5
commit 3fe2e81c0e
1 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,11 @@
<% if edit_mode && homework.is_group_homework? %>
$("#GroupPopupBox a.group_save_btn").click();
<% end %>
<% if edit_mode %>
$("#anonymous_comment").on('click',function(){
$("#anonymous_hint").show();
});
<% end %>
});
function checked_val() {
if ($("#anonymous_comment").is(":checked")) {
@ -174,7 +179,8 @@
<% if !edit_mode || edit_mode && homework.homework_detail_manual.comment_status < 2 %>
<div class="fl f14 ml10" style="margin-top: 4px;">
<input type="checkbox" name="homework_common[anonymous_comment]" value="<%=edit_mode ? homework.anonymous_comment : 1 %>" id="anonymous_comment"/>
<span class="f14 c_grey mr10">禁用匿评</span>
<span class="f14 c_grey">禁用匿评</span>
<span id="anonymous_hint" style="display: none; font-size: 12px;" class="c_red">更改后评分比例将恢复默认值</span>
</div>
<% end %>
</div>