update loguou
This commit is contained in:
@@ -139,11 +139,9 @@ $(function(){
|
|||||||
$('.delete').click(function(){
|
$('.delete').click(function(){
|
||||||
var method = $(this).attr('data-method');
|
var method = $(this).attr('data-method');
|
||||||
var url = $(this).attr('data-ref');
|
var url = $(this).attr('data-ref');
|
||||||
var html = $(this).siblings.html();
|
|
||||||
console.log(html);
|
|
||||||
swal({
|
swal({
|
||||||
title: "Confirmation",
|
title: "Confirmation",
|
||||||
text: $(this).children().children('#delete_text').html(),
|
text: $('#delete_text').html(),
|
||||||
type: "warning",
|
type: "warning",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: "#DD6B55",
|
confirmButtonColor: "#DD6B55",
|
||||||
@@ -155,7 +153,7 @@ $(function(){
|
|||||||
url: url ,
|
url: url ,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
swal("Cancelled", "Your imaginary file is safe :)", "error");
|
swal("Cancelled", "Your imaginary file is safe :)", "error");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user