mirror of https://github.com/jumpserver/jumpserver
confirm alert
parent
31807b674b
commit
4bbae38150
|
@ -93,6 +93,7 @@ type="checkbox" name="selected" value="{{ group.id }}">
|
||||||
$(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'),
|
||||||
{},
|
{},
|
||||||
|
@ -101,7 +102,7 @@ type="checkbox" name="selected" value="{{ group.id }}">
|
||||||
alert(data);
|
alert(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
)
|
)}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#del_btn').click(function(){
|
$('#del_btn').click(function(){
|
||||||
|
|
Loading…
Reference in New Issue