function deleteFunction(item) {
$.ajax({
url: '/post_delete',
data: {post_id: item.id},
method: 'POST',
success: function(){
}
});
};
$('#post_delete').on('click', function(e) {
e.preventDefault();
let post = document.getElementById('post_delete');
$.ajax({
url: '/post_delete',
data: {post_id: post.dataset.id},
method: 'POST',
success: function(){
}
});
});