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.
27 lines
821 B
27 lines
821 B
6 years ago
|
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();
|
||
|
}
|
||
|
}
|