|
|
|
@ -148,6 +148,35 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 隐藏非项目信息特用
|
|
|
|
|
function batch_send_hidden(){
|
|
|
|
|
if($("#resources_list_form").serialize() == ""){
|
|
|
|
|
alert('暂时不支持多页选择,您当前页没有选择任何资源');
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
if (lastSendType === '1'){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '<%= search_user_project_user_path(User.current.id) %>' + '?' + $("#resources_list_form").serialize() + "&type=<%= @type %>",
|
|
|
|
|
data:{send_type:'file'}
|
|
|
|
|
});
|
|
|
|
|
}else if (lastSendType === '2'){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '<%= search_user_org_user_path(User.current.id) %>' + '?' + $("#resources_list_form").serialize() + "&type=<%= @type %>",
|
|
|
|
|
data:{send_type:'file'}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'get',
|
|
|
|
|
url: '<%= search_user_project_user_path(User.current.id)%>' + '?'+ $("#resources_list_form").serialize() + "&type=<%= @type %>",
|
|
|
|
|
data:{send_type:'file'}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function preview(){
|
|
|
|
|
$("#contextMenu").hide();
|
|
|
|
|
document.oncontextmenu = function() {return true;}
|
|
|
|
|