confirm alert

pull/26/head
liuzheng712 2015-11-20 11:16:47 +08:00
parent 31807b674b
commit 4bbae38150
1 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ type="checkbox" name="selected" value="{{ group.id }}">
$(document).ready(function(){
$('.del').click(function(){
var row = $(this).closest('tr');
if (confirm("确定删除")) {
$.get(
$(this).attr('value'),
{},
@ -101,7 +102,7 @@ type="checkbox" name="selected" value="{{ group.id }}">
alert(data);
}
)
)}
});
$('#del_btn').click(function(){