|
|
|
@ -1178,6 +1178,36 @@ function chooseSendType(res_id,res_ids, user_id, send_type){
|
|
|
|
|
lastSendType = sendType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function chooseSendType2(res_id,res_ids, user_id, send_type, type){
|
|
|
|
|
console.log(res_ids);
|
|
|
|
|
sendType = $(".resourcesSendType").val();
|
|
|
|
|
if (sendType === lastSendType) {
|
|
|
|
|
return;
|
|
|
|
|
} else if(lastSendType != null) { //不是第一次点击的时候
|
|
|
|
|
if (sendType == '1') {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '/users/' + user_id + '/search_user_course' + '?' + "&type=" + type,
|
|
|
|
|
data:{send_id:res_id, send_ids:res_ids ,send_type:send_type}
|
|
|
|
|
});
|
|
|
|
|
} else if(sendType == '2') {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '/users/' + user_id + '/search_user_project' + '?' + "&type=" + type,
|
|
|
|
|
data:{send_id:res_id, send_ids:res_ids, send_type:send_type}
|
|
|
|
|
});
|
|
|
|
|
}else if(sendType == '3'){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '/users/' + user_id + '/search_user_org' + '?' + "&type=" + type,
|
|
|
|
|
data:{send_id:res_id, send_ids:res_ids, send_type:send_type}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
lastSendType = sendType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//组织新建和配置中,选择组织为私有后,disbled掉允许游客下载选项
|
|
|
|
|
function disable_down(source, des, hint){
|
|
|
|
|
if (source.attr("checked")){
|
|
|
|
|