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/shixun.js

27 lines
821 B

var lastteSearchCondition = '';
function search_not_teacher_f(e){
console.log($(e.target).val().trim());
console.log(lastteSearchCondition);
if($(e.target).val().trim() == "")
{
return;
}
lastteSearchCondition = $(e.target).val().trim();
$.ajax({
url: '/shixuns/' + $("#shixun_collaborators_id").val() + '/add_collaborators',
type:'post',
data: {is_observe:true, search:e.target.value},
success: function(data){ }
});
}
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();
}
}