Fixed bug where icon wasn't changing from plus to minus on second table.
This commit is contained in:
parent
afdd487b7d
commit
8722400e3d
@ -79,7 +79,7 @@
|
|||||||
<td scope="row" id="expandYield">
|
<td scope="row" id="expandYield">
|
||||||
Actual Yielded Wafers Out
|
Actual Yielded Wafers Out
|
||||||
<button class="btn btn-default" onclick="expandYield()">
|
<button class="btn btn-default" onclick="expandYield()">
|
||||||
<i class="fa-solid fa-plus-circle" id="yieldIcon"></i>
|
<i class="fa-solid fa-plus-circle yieldIcon"></i>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
@for (int i = 0; i < 7; i++)
|
@for (int i = 0; i < 7; i++)
|
||||||
|
@ -145,10 +145,14 @@ function expandYield() {
|
|||||||
yieldDivs[i].classList.toggle("hidden");
|
yieldDivs[i].classList.toggle("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
var source = document.getElementById("yieldIcon");
|
var icons = document.getElementsByClassName("yieldIcon");
|
||||||
|
|
||||||
|
for (let i = 0; i < icons.length; i++) {
|
||||||
|
icons[i].classList.toggle("fa-plus-circle");
|
||||||
|
icons[i].classList.toggle("fa-minus-circle");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
source.classList.toggle("fa-plus-circle");
|
|
||||||
source.classList.toggle("fa-minus-circle");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleWeek() {
|
function toggleWeek() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user