优化代码
This commit is contained in:
@ -59,8 +59,8 @@ $(function() {
|
||||
|
||||
// 单条删除
|
||||
function remove(jobLogId) {
|
||||
$.modalConfirm("确定要删除选中岗位吗?", function(r) {
|
||||
_ajax(prefix + "/remove/" + jobLogId, "", "post", r);
|
||||
$.modalConfirm("确定要删除选中岗位吗?", function() {
|
||||
_ajax(prefix + "/remove/" + jobLogId, "", "post");
|
||||
})
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ function batchRemove() {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function(r) {
|
||||
_ajax(prefix + '/batchRemove', { "ids": rows }, "post", r);
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
_ajax(prefix + '/batchRemove', { "ids": rows }, "post");
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user