|
|
|
@ -5,9 +5,9 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
if($.trim($("#anonymous_comment").val()) == 1) {
|
|
|
|
|
$("#anonymous_comment").attr('checked',false);
|
|
|
|
|
} else {
|
|
|
|
|
$("#anonymous_comment").attr('checked',true);
|
|
|
|
|
} else {
|
|
|
|
|
$("#anonymous_comment").attr('checked',false);
|
|
|
|
|
}
|
|
|
|
|
$("#BluePopupBox a.BlueCirBtn").click();
|
|
|
|
|
<% if edit_mode && homework.is_group_homework? %>
|
|
|
|
@ -16,9 +16,9 @@
|
|
|
|
|
});
|
|
|
|
|
function checked_val() {
|
|
|
|
|
if ($("#anonymous_comment").is(":checked")) {
|
|
|
|
|
$("#anonymous_comment").val(0);
|
|
|
|
|
} else {
|
|
|
|
|
$("#anonymous_comment").val(1);
|
|
|
|
|
} else {
|
|
|
|
|
$("#anonymous_comment").val(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -53,8 +53,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% 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]" checked="checked" value="<%=edit_mode ? homework.anonymous_comment : 0 %>" id="anonymous_comment"/>
|
|
|
|
|
<span class="f14 c_grey mr10">启用匿评</span>
|
|
|
|
|
<input type="checkbox" name="homework_common[anonymous_comment]" value="<%=edit_mode ? homework.anonymous_comment : 0 %>" id="anonymous_comment"/>
|
|
|
|
|
<span class="f14 c_grey mr10">禁用匿评</span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|