We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fdf3a9 commit 1d53a58Copy full SHA for 1d53a58
resources/views/index.php
@@ -50,14 +50,17 @@
50
}
51
});
52
53
- $("a.delete-key").click(function(event){
54
- event.preventDefault();
55
- var row = $(this).closest('tr');
56
- var url = $(this).attr('href');
57
- var id = row.attr('id');
58
- $.post( url, {id: id}, function(){
59
- row.remove();
60
- } );
+ $("a.delete-key").on('confirm:complete',function(event,result){
+ if(result)
+ {
+ var row = $(this).closest('tr');
+ var url = $(this).attr('href');
+ var id = row.attr('id');
+ $.post( url, {id: id}, function(){
+ row.remove();
61
+ } );
62
+ }
63
+ return false;
64
65
66
$('.form-import').on('ajax:success', function (e, data) {
0 commit comments