сраный баг с табами чата.

This commit is contained in:
Ivor Barhansky 2023-08-16 03:05:22 +03:00
parent 80ef052c6e
commit fc663a8c42

View File

@ -287,7 +287,7 @@ function add_cb(id, name, main, indata = '') {
<table border="0" id="usbtn${cb_id}" onMouseDown="open_cb(${cb_id});" cellspacing="0" cellpadding="0"> <table border="0" id="usbtn${cb_id}" onMouseDown="open_cb(${cb_id});" cellspacing="0" cellpadding="0">
${unleft}<td class="zbtn1c" id="cdb${cb_id}"> ${unleft}<td class="zbtn1c" id="cdb${cb_id}">
<div style="font-size:11px;${cd_wdw};text-align:center;" id="blueText${cb_id}" class="${cd_stl[id]}">${name}</div> <div style="font-size:11px;${cd_wdw};text-align:center;" id="blueText${cb_id}" class="${cd_stl[id]}">${name}</div>
</td>${unright}</tr></table></div>`; </td>${unright}</tr></table></div>${$("#chat_menu").html()}`;
if (!$(`#canal${id}`).html()) { if (!$(`#canal${id}`).html()) {
ch.innerHTML = `<div id="canal${id}" style="display:none;">${indata}</div>`; ch.innerHTML = `<div id="canal${id}" style="display:none;">${indata}</div>`;
@ -650,8 +650,12 @@ function blueTextSee(id) {
// 4.6 // 4.6
function open_clear_work(symbId, count, className) { function open_clear_work(symbId, count, className) {
top.document.getElementById(`${symbId}db${count}`).className = className; if (top.document.getElementById(`${symbId}db${count}`) != null) {
top.document.getElementById(`canal${cb_date[count]}`).style.display = 'none'; top.document.getElementById(`${symbId}db${count}`).className = className;
}
if (top.document.getElementById(`canal${cb_date[count]}`) != null) {
top.document.getElementById(`canal${cb_date[count]}`).style.display = 'none';
}
} }
function open_clear_cb() { function open_clear_cb() {
@ -712,7 +716,9 @@ function open_cb(id, ed) {
top.document.getElementById(`ldb${(id - 1)}`).className = 'zbtn2r2'; top.document.getElementById(`ldb${(id - 1)}`).className = 'zbtn2r2';
} }
} }
top.document.getElementById(`canal${cb_date[id]}`).style.display = ''; if (top.document.getElementById(`canal${cb_date[id]}`) != null) {
top.document.getElementById(`canal${cb_date[id]}`).style.display = '';
}
cb_select = id; cb_select = id;
} }
falseBlue(cb_select); falseBlue(cb_select);