Update post.js
This commit is contained in:
1 parent
90678440eb
commit
00a36b570f
1 file changed
+1
-1
+1
-1
@@ -49,7 +49,7 @@ async function renderPostDetail(postId) {
|
|||||||
if (post.images && post.images.length > 0) {
|
if (post.images && post.images.length > 0) {
|
||||||
imagesHtml = '<div class="post-images">';
|
imagesHtml = '<div class="post-images">';
|
||||||
post.images.forEach(img => {
|
post.images.forEach(img => {
|
||||||
imagesHtml += '<img src="' + img + '" class="post-image" />';
|
imagesHtml += '<img src="' + img + '" class="post-image" onclick="openImageViewer(this.src)" style="cursor:pointer;" />';
|
||||||
});
|
});
|
||||||
imagesHtml += '</div>';
|
imagesHtml += '</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user