"; //
//prioritize in-progress
+ var list = '';
for (i = 0; i < listLength; i++) {
if (punchList[i].progress.toLowerCase() === "in progress") {
console.log(`in progress`);
// list += "
";
+ list += "
"; //
list += "
"; //
list += "
";
list += "
" + punchList[i].subject + "
"; //
@@ -77,14 +78,18 @@ function genList(punchList) {
list += "
";
list += "
";
list += "
";
+ list += "";
+ document.getElementById("punchListInProgress").innerHTML = list;
}
}
// then !done
+ var list = '';
for (i = 0; i < listLength; i++) {
if (punchList[i].progress.toLowerCase() != "in progress") {
if (punchList[i].progress.toLowerCase() != "done") {
console.log(`not in progress or not done`);
+ list += "
"; //
list += "
"; //
list += "
";
list += "
" + punchList[i].subject + "
"; //
@@ -104,16 +109,21 @@ function genList(punchList) {
list += "
";
list += "
";
list += "
";
+ list += "";
+ document.getElementById("punchListNew").innerHTML = list;
}
}
}
// then done
+ var list = '';
for (i = 0; i < listLength; i++) {
if (showDone === true) {
+ enableElement("punchListDoneWrapper");
if (punchList[i].progress.toLowerCase() === "done") {
console.log(`show done.`);
- list += "
"; //
+ list += "
"; //
+ list += "
"; //
list += "
";
list += "
" + punchList[i].subject + "
"; //
list += "
Status: " + punchList[i].progress + "
";
@@ -132,12 +142,13 @@ function genList(punchList) {
list += "