|
|
|
@ -274,6 +274,19 @@
|
|
|
|
|
$this.bind('keyup click mousemove', reset);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function check_des(event){
|
|
|
|
|
if($(".sectionContent").find('input[type="radio"]:checked').length <= 0){
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
$(".orgDirection").text('目标地址组织不能为空')
|
|
|
|
|
return false;
|
|
|
|
|
}else if($(".columnContent").find('input[type="radio"]:checked').length <= 0){
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
$(".orgDirection").text('目标地址栏目不能为空')
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
var sendType = '1';
|
|
|
|
@ -290,7 +303,10 @@
|
|
|
|
|
url: '<%= search_user_course_user_path(User.current)%>' + '?send_id=' + id
|
|
|
|
|
});
|
|
|
|
|
}else if( lastSendType == '3'){//组织
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '<%= search_user_org_user_path(User.current)%>' + '?send_id=' + id
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|