remove bgcolor
This commit is contained in:
@@ -176,9 +176,10 @@ const Timetable = ({
|
|||||||
if (openRecordMode) {
|
if (openRecordMode) {
|
||||||
for (const index in json) {
|
for (const index in json) {
|
||||||
const input = indexToElement[index];
|
const input = indexToElement[index];
|
||||||
const td= indexToCell[index];
|
const td = indexToCell[index];
|
||||||
if (json[index] !== user) {
|
if (json[index] !== user) {
|
||||||
td.innerHTML = json[index]
|
td.innerHTML = json[index];
|
||||||
|
td.removeAttribute("bgcolor");
|
||||||
} else {
|
} else {
|
||||||
input.checked = true;
|
input.checked = true;
|
||||||
input.disabled = true;
|
input.disabled = true;
|
||||||
@@ -240,7 +241,9 @@ const Timetable = ({
|
|||||||
for (const row of marks) {
|
for (const row of marks) {
|
||||||
for (const input of row) {
|
for (const input of row) {
|
||||||
if (input === null) continue;
|
if (input === null) continue;
|
||||||
if (input.value !== "") {
|
if (input.checked) {
|
||||||
|
data.selections[input.name] = 1;
|
||||||
|
} else if (parseFloat(input.value)) {
|
||||||
data.selections[input.name] = parseFloat(input.value);
|
data.selections[input.name] = parseFloat(input.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user