This commit is contained in:
Joseph Cheung 2023-03-13 00:34:01 +08:00
parent 2b473a701d
commit a297b2ee7d
2 changed files with 20 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -1367,6 +1367,23 @@ function modal_open(url, num)
() => { () => {
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
const links = iframeDoc.getElementsByTagName('a');
for (let i = 0; i < links.length; i++) {
if(!links[i].href) continue;
links[i].addEventListener('click', function(event) {
if (window.lock_chat === 1) {
event.preventDefault();
alert('请耐心等待上一个会话结束');
}
else
{
modal_open(links[i].href, 'URL');
}
});
}
document.querySelector("#modal-input-content").appendChild(document.querySelector("#chat_talk")) document.querySelector("#modal-input-content").appendChild(document.querySelector("#chat_talk"))
document.querySelector("#modal-input-content").appendChild(document.querySelector("#chat_continue")) document.querySelector("#modal-input-content").appendChild(document.querySelector("#chat_continue"))