From 6f04566334afd95a30dbf9050a8267bc9165f979 Mon Sep 17 00:00:00 2001 From: Kameron Kenny Date: Fri, 7 Jun 2019 15:11:17 -0400 Subject: [PATCH] add tagging feature --- punch_list/eventManage.js | 50 +++++++++++++++++++++++++++++++++++++++ punch_list/index.html | 1 + punch_list/metadata.js | 2 +- 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/punch_list/eventManage.js b/punch_list/eventManage.js index 491d34d..7e0bcc6 100644 --- a/punch_list/eventManage.js +++ b/punch_list/eventManage.js @@ -65,6 +65,15 @@ function genList(punchList) { list += "
Status: " + punchList[i].progress + "
"; list += "
Priority: " + punchList[i].priority + "
"; list += "
Need By: " + punchList[i].nDate + "
"; + + if (punchList[i].tags != undefined) { + console.log(`Adding tags object to punchList[${item}]`); + list += "
Tags: "; + for (t = 0; t < punchList[i].tags.length; t++) { + list += punchList[i].tags[t] + ", "; + } + list += "
"; + } list += ""; list += "
"; list += ""; list += "
"; list += ""; list += "
"; list += "
diff --git a/punch_list/metadata.js b/punch_list/metadata.js index af6e224..24078bf 100644 --- a/punch_list/metadata.js +++ b/punch_list/metadata.js @@ -1,4 +1,4 @@ -var version = "0.2.017", +var version = "0.3.021", debug = false, jsonUrl = "https://api.myjson.com/bins/1dodsj", showDone = false,