Commit 0a563678 by Lee Daehyun

MR修正

parent 5b50ed5d
......@@ -166,7 +166,7 @@
<script src="./js/chat-websocket.js"></script>
<script src="./js/chat-room.js"></script>
<script>
function test(image) {
function imageModal(image) {
$('#modal_image').attr('src',image.src);
$('#pictureModalCenter').modal('show');
}
......
......@@ -112,7 +112,7 @@ CHAT.uploadImage = function(formData) {
let downloadPath = CMS_SERVER_URL + '/chatapi/file/download?fileName=' + imageName + '&roomId=' + CHAT.globalLoginParameter.roomId;
// アップロードが終了した後ローディング画面から離れてメッセージをメッセージを転送する
const lightbox = $('<a/>', {'data-lightbox':'attachedImages', 'data-title':imageName});
const image = $('<img/>', {src:imgPath, width:'auto', style:'max-width:100%', 'data-toggle':'modal', onclick:'test(this);'});
const image = $('<img/>', {src:imgPath, width:'auto', style:'max-width:100%', 'data-toggle':'modal', onclick:'imageModal(this);'});
const downloadIcon = $('<a/>', {href:downloadPath, class:'fa fa-download', download:res.fileName});
lightbox.append(image);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment