选用题库时去掉对学生身份的验证

This commit is contained in:
cxt 2019-02-19 09:13:24 +08:00
parent 3e529f0b8b
commit e8cdb0caed
1 changed files with 16 additions and 13 deletions

View File

@ -50,19 +50,22 @@
if(checkboxs.length == 0) {
$("#choose_courses_notice").html("请先选择作业");
} else{
$.post(
'<%=check_homework_users_path() %>',
{homework: checkboxs.val()},
function(data){
if(data.status == 1) {
$("#choose_courses_notice").html("您选中的题是“我收到的作业”,不能选用");
} else if(data.status == 0) {
$("#choose_courses_notice").html("");
$('#select_homework_form').submit();
hideModal();
}
}
);
$("#choose_courses_notice").html("");
$('#select_homework_form').submit();
hideModal();
// $.post(
// '<%#=check_homework_users_path() %>',
// {homework: checkboxs.val()},
// function(data){
// if(data.status == 1) {
// $("#choose_courses_notice").html("您选中的题是“我收到的作业”,不能选用");
// } else if(data.status == 0) {
// $("#choose_courses_notice").html("");
// $('#select_homework_form').submit();
// hideModal();
// }
// }
// );
}
}
$("#public_homeworks_choose").click(function(){