Commit 7c4e8636 authored by agping's avatar agping

修改

parent f47c7b77
...@@ -179,8 +179,6 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -179,8 +179,6 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
if(confirm('确定删除该文件吗?')) { if(confirm('确定删除该文件吗?')) {
var _imgId = _this.parent().attr('data-imgid'); var _imgId = _this.parent().attr('data-imgid');
_this.parent().remove(); _this.parent().remove();
user.addDeleteNewsEvent();
}; };
}); });
//图片预览点击放大事件 //图片预览点击放大事件
...@@ -263,14 +261,14 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -263,14 +261,14 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
})); }));
} }
//添加删除附件事件 //添加删除附件事件
// user.addDeleteNewsEvent(); user.addDeleteNewsEvent();
} else {} } else {}
} }
}); });
}, },
addDeleteNewsEvent :function(){ addDeleteNewsEvent :function(){
// $('.delet-pic-btn').unbind('click').bind('click',function(){ $('.delet-pic-btn').unbind('click').bind('click',function(){
var file_id = $(this).parent('li').attr('id') - 0 ; var file_id = $(this).parent('li').attr('id') - 0 ;
$.ajax({ $.ajax({
url: '/index/delNewsFile', url: '/index/delNewsFile',
...@@ -284,8 +282,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -284,8 +282,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
} }
} }
}); });
// } }
// ); );
}, },
getDistrict: function(fn) { getDistrict: function(fn) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment