fix
This commit is contained in:
@@ -126,7 +126,18 @@ const Timetable = ({
|
||||
for (const td_index in tr.children) {
|
||||
const td: HTMLTableCellElement = tr.children[td_index];
|
||||
if (td.tagName !== "TD") continue;
|
||||
|
||||
if (td.getAttribute("bgcolor")?.toUpperCase() !== "#39CEFF") {
|
||||
// const position (assigned by supervisor)
|
||||
if (td?.textContent?.trim() === user) {
|
||||
const constSelected = document.createElement("input");
|
||||
constSelected.setAttribute("type", "checkbox");
|
||||
constSelected.setAttribute("checked", "1");
|
||||
constSelected.setAttribute("disabled", "1");
|
||||
td.innerHTML = "";
|
||||
td.appendChild(constSelected);
|
||||
}
|
||||
|
||||
row.push(null);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user