Done for now
This commit is contained in:
@@ -5,12 +5,9 @@ $('#detailModal').on('show.bs.modal', function (event) {
|
||||
" <span class=\"sr-only\">Loading...</span>\n" +
|
||||
"</div>");
|
||||
$('#details-description').html('');
|
||||
$.post(`/api/post/${post_id}`, data => {
|
||||
|
||||
$.get(`/api/post/${post_id}`, data => {
|
||||
let post = data.post;
|
||||
console.log(post);
|
||||
|
||||
// $('#details-title').text(post.title);
|
||||
$('#details-intro').html(post.intro);
|
||||
$('#details-description').html(post.description);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user