|
|
|
@ -482,18 +482,18 @@ function regex_evaluation_num()
|
|
|
|
|
|
|
|
|
|
//点击是否开启匿评单选框效果
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#homework_common_homework_type").click(function(){
|
|
|
|
|
if($("#homework_common_homework_type").attr("checked") == "checked")
|
|
|
|
|
{
|
|
|
|
|
$("#evaluation_setting").slideDown();
|
|
|
|
|
$("#ta_proportion").removeAttr("disabled");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$("#evaluation_setting").slideUp();
|
|
|
|
|
$("#ta_proportion").attr("disabled","disabled");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//$("#homework_common_homework_type").click(function(){
|
|
|
|
|
// if($("#homework_common_homework_type").attr("checked") == "checked")
|
|
|
|
|
// {
|
|
|
|
|
// $("#evaluation_setting").slideDown();
|
|
|
|
|
// $("#ta_proportion").removeAttr("disabled");
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// $("#evaluation_setting").slideUp();
|
|
|
|
|
// $("#ta_proportion").attr("disabled","disabled");
|
|
|
|
|
// }
|
|
|
|
|
//});
|
|
|
|
|
|
|
|
|
|
$("#absence_penalty").change(function(){
|
|
|
|
|
$("#absence_penalty_notice").html(" "+ $("#absence_penalty").val() +" ");
|
|
|
|
@ -520,21 +520,21 @@ function build_selector(max_num){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//第一次加载时,如果未开启匿评作业,隐藏显示匿评配置信息
|
|
|
|
|
$(function(){
|
|
|
|
|
if($("#homework_common_homework_type").attr("id") != null && $("#homework_common_homework_type").val() != 2)
|
|
|
|
|
{
|
|
|
|
|
if($("#homework_common_homework_type").attr("checked") == "checked")
|
|
|
|
|
{
|
|
|
|
|
$("#evaluation_setting").show();
|
|
|
|
|
$("#ta_proportion").removeAttr("disabled");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$("#evaluation_setting").hide();
|
|
|
|
|
$("#ta_proportion").attr("disabled","disabled");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//$(function(){
|
|
|
|
|
// if($("#homework_common_homework_type").attr("id") != null && $("#homework_common_homework_type").val() != 2)
|
|
|
|
|
// {
|
|
|
|
|
// if($("#homework_common_homework_type").attr("checked") == "checked")
|
|
|
|
|
// {
|
|
|
|
|
// $("#evaluation_setting").show();
|
|
|
|
|
// $("#ta_proportion").removeAttr("disabled");
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// $("#evaluation_setting").hide();
|
|
|
|
|
// $("#ta_proportion").attr("disabled","disabled");
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//});
|
|
|
|
|
|
|
|
|
|
//老师提交 新建/修改 作业
|
|
|
|
|
function submit_homework(id)
|
|
|
|
|