Fix options chain headers mixing list and T-view columns.
Thead rows used a .hidden class with no CSS rule on instance pages, so both header sets stayed visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -291,9 +291,18 @@
|
||||
const headList = document.getElementById("opt-strike-head-list");
|
||||
const headT = document.getElementById("opt-strike-head-t");
|
||||
const headTCols = document.getElementById("opt-strike-head-t-cols");
|
||||
if (headList) headList.classList.toggle("hidden", isT);
|
||||
if (headT) headT.classList.toggle("hidden", !isT);
|
||||
if (headTCols) headTCols.classList.toggle("hidden", !isT);
|
||||
if (headList) {
|
||||
headList.classList.toggle("hidden", isT);
|
||||
headList.hidden = isT;
|
||||
}
|
||||
if (headT) {
|
||||
headT.classList.toggle("hidden", !isT);
|
||||
headT.hidden = !isT;
|
||||
}
|
||||
if (headTCols) {
|
||||
headTCols.classList.toggle("hidden", !isT);
|
||||
headTCols.hidden = !isT;
|
||||
}
|
||||
const wrap = document.getElementById("opt-strike-table-wrap");
|
||||
if (wrap) wrap.classList.toggle("options-strike-table-wrap--t", isT);
|
||||
const table = document.getElementById("opt-strike-table");
|
||||
|
||||
Reference in New Issue
Block a user