mirror of https://github.com/jumpserver/jumpserver
user delete with alert confirm
parent
84992746de
commit
4027a87e7f
|
@ -99,6 +99,7 @@
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.del').click(function(){
|
$('.del').click(function(){
|
||||||
var row = $(this).closest('tr');
|
var row = $(this).closest('tr');
|
||||||
|
if (confirm("确定删除")) {
|
||||||
$.get(
|
$.get(
|
||||||
$(this).attr('value'),
|
$(this).attr('value'),
|
||||||
{},
|
{},
|
||||||
|
@ -106,7 +107,7 @@
|
||||||
row.remove();
|
row.remove();
|
||||||
alert(data);
|
alert(data);
|
||||||
}
|
}
|
||||||
)
|
)}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#del_btn').click(function(){
|
$('#del_btn').click(function(){
|
||||||
|
|
Loading…
Reference in New Issue