Moved API and DB methods to interfaces in order to leverage Dependency Injection, disolved APICaller class, including functionality in several other functions, included Single Load Lock information into Production Passdown report, changed persistant data file to json instead of xml, and adjusted persistant data file to include a week's worth of data instead of a single day.
This commit is contained in:
@ -15,10 +15,8 @@ function initMultiselect() {
|
||||
|
||||
document.addEventListener("click", function (evt) {
|
||||
var flyoutElement = document.getElementsByClassName("myMultiselect");
|
||||
var yieldElement = document.getElementById("expandYield");
|
||||
var targetElement = evt.target; // clicked element
|
||||
var myMultiselect = false;
|
||||
var clickedYield = false;
|
||||
|
||||
var count = 0;
|
||||
|
||||
@ -34,14 +32,9 @@ function initMultiselect() {
|
||||
myMultiselect = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (targetElement == yieldElement) {
|
||||
clickedYield = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (myMultiselect || clickedYield)
|
||||
if (myMultiselect)
|
||||
break;
|
||||
|
||||
// Go up the DOM
|
||||
@ -52,10 +45,6 @@ function initMultiselect() {
|
||||
if (!myMultiselect) {
|
||||
toggleCheckboxArea(true);
|
||||
}
|
||||
|
||||
|
||||
if (clickedYield)
|
||||
expandYield();
|
||||
});
|
||||
}
|
||||
|
||||
@ -154,4 +143,9 @@ function expandYield() {
|
||||
for (let i = 0; i < yieldDivs.length; i++) {
|
||||
yieldDivs[i].classList.toggle("hidden");
|
||||
}
|
||||
|
||||
if (source.substring(source.indexOf("Images/") + 7) == "plusIcon.png")
|
||||
document.getElementById("yieldImage").src = "../Images/minusIcon.png";
|
||||
else
|
||||
document.getElementById("yieldImage").src = "../Images/plusIcon.png";
|
||||
}
|
Reference in New Issue
Block a user