mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-20 23:39:02 +00:00
user delete with alert confirm
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
$(document).ready(function(){
|
||||
$('.del').click(function(){
|
||||
var row = $(this).closest('tr');
|
||||
if (confirm("确定删除")) {
|
||||
$.get(
|
||||
$(this).attr('value'),
|
||||
{},
|
||||
@@ -106,7 +107,7 @@
|
||||
row.remove();
|
||||
alert(data);
|
||||
}
|
||||
)
|
||||
)}
|
||||
});
|
||||
|
||||
$('#del_btn').click(function(){
|
||||
|
Reference in New Issue
Block a user