资源库 只能删除上传者为自己的资源

This commit is contained in:
lizanle 2015-08-21 10:32:13 +08:00
parent cf243d47e5
commit 3feff49ca3
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ $(".resourcesList").click(function(e) {
//批量删除
function batch_delete(){
var data = $("#resources_list_form").serialize();
if(data != "" && confirm('确认要删除这些资源吗?')) {
if(data != "" && confirm('您可能会删不掉这其中上传者不是您的资源,确认要删除这些资源吗?')) {
$.post(
'<%= user_resource_delete_user_path(@user)%>',
$("#resources_list_form").serialize(),//只会对选中的控件进行序列化提交