1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-06-16 18:30:03 +08:00

Merge pull request #981 from zjpzjp/develop

增加点击图片新标签打开放大
This commit is contained in:
lecjy 2023-12-05 14:44:34 +08:00 committed by GitHub
commit d80b63a7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
})
})