user delete with alert confirm

pull/26/head
liuzheng712 2015-11-17 20:25:15 +08:00
parent 84992746de
commit 4027a87e7f
1 changed files with 2 additions and 1 deletions

View File

@ -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(){