1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

增加点击图片新标签打开放大

Signed-off-by: zjpzjp <zjpzjp@foxmail.com>
This commit is contained in:
zjpzjp 2023-11-23 16:29:01 +08:00
parent 7c22c4fd44
commit b66c0773b3
2 changed files with 12 additions and 0 deletions

View File

@ -53,6 +53,11 @@ block content
sendMessage();
return false;
})
// 增加点击图片新标签打开放大
$("#chat_msg_list").on("click", ".chat-content img", function () {
let originalUrl = $(this).attr("src") + '&original=true';
window.open(originalUrl, '_blank');
})
});
function otherTopicSearch() {
console.log("otherTopicSearch")

View File

@ -704,4 +704,11 @@ html
window.onresize = function () {
R3Helper.resize();
};
// 增加点击图片新窗口打开
$(function(){
$("#above").on("click", ".chat-content img", function () {
let originalUrl = $(this).attr("src") + '&original=true';
window.open(originalUrl, '_blank');
})
})