You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/public/javascripts/edu/subject.js

38 lines
1.2 KiB

6 years ago
function submit_add_collaborators_form(){
if($("input[name='membership[user_ids][]']:checked").length >= 1){
$("#add_teacher_notice").html("").hide();
$("#add_collaborators_form").submit();
hideModal();
}else{
$("#add_teacher_notice").html("请至少选择一个用户").show();
}
}
//实训路径的合作者
function search_not_subject_members_f(){
$.ajax({
url: '/paths/' + $("#subject_collaborators_id").val() + '/add_collaborators',
type: 'post',
data: {search: $("#search_not_collaborators").val().trim()},
remote: true,
success: function(data){
}
});
}
// 发送至课堂的表单提交
function submit_send_subject_to_course(){
if($("#send_course_id").val() == ""){
$("#send_course_id_tip").show();
} else{
$("#send_course_id_tip").hide();
if($("input[name='shixun_ids[]']:checked").length == 0){
$("#choose_shixun_count").html("已选择 0 个实训").addClass("color-orange-tip");
} else{
$("#choose_shixun_count").removeClass("color-orange-tip")
$("#send_subject_to_course_form").submit();
}
}
}