mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-03 18:16:37 +00:00
confirm alert
This commit is contained in:
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
Block a user