优化代码
This commit is contained in:
@ -62,8 +62,8 @@ $(function() {
|
||||
|
||||
// 单条强退
|
||||
function forceLogout(id) {
|
||||
$.modalConfirm("确定要强制选中用户下线吗?", function(r) {
|
||||
_ajax(prefix + "/forceLogout/" + id, "", "post", r);
|
||||
$.modalConfirm("确定要强制选中用户下线吗?", function() {
|
||||
_ajax(prefix + "/forceLogout/" + id, "", "post");
|
||||
})
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ function batchForceLogout() {
|
||||
$.modalMsg("请选择要删除的数据", "warning");
|
||||
return;
|
||||
}
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function(r) {
|
||||
_ajax(prefix + '/batchForceLogout', { "ids": rows }, "post", r);
|
||||
$.modalConfirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
|
||||
_ajax(prefix + '/batchForceLogout', { "ids": rows }, "post");
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user