| DIR: /tmp/ |
| Current File : //tmp/phpX85kx5 |
home/islapiiu/sites/forbes/control-panel/delete/js/activity.js 0000644 00000002244 15077032565 0020563 0 ustar 00 $(document).ready(function () {
$('.delete-activity').click(function () {
var id = $(this).attr("data-id");
swal({
title: "Are you sure?",
text: "You will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: false
}, function () {
$.ajax({
url: "delete/ajax/activity.php",
type: "POST",
data: {id: id, option: 'delete'},
dataType: "JSON",
success: function (jsonStr) {
if (jsonStr.status) {
swal({
title: "Deleted!",
text: "Your imaginary file has been deleted.",
type: 'success',
timer: 2000,
showConfirmButton: false
});
$('#div' + id).remove();
}
}
});
});
});
}); |