This commit is contained in:
Kameron Kenny 2019-06-18 13:28:49 -04:00
parent d9b04132ce
commit da56c89721
2 changed files with 5 additions and 3 deletions

View File

@ -154,16 +154,18 @@ function genList(punchList, element) {
} }
function startPunch(item) { function startPunch(uuid) {
var punchList = window.punches; var punchList = window.punches;
item = findArrayId(uuid);
punchList[item].progress = "In Progress"; punchList[item].progress = "In Progress";
jsonStr = JSON.stringify(punchList); jsonStr = JSON.stringify(punchList);
putJson(jsonStr); putJson(jsonStr);
} }
function completePunch(item) { function completePunch(uuid) {
var punchList = window.punches; var punchList = window.punches;
item = findArrayId(uuid);
punchList[item].progress = "Done"; punchList[item].progress = "Done";
jsonStr = JSON.stringify(punchList); jsonStr = JSON.stringify(punchList);

View File

@ -1,4 +1,4 @@
var version = "0.3.047", var version = "0.3.048",
debug = false, debug = false,
jsonUrl = "https://api.myjson.com/bins/1dodsj", jsonUrl = "https://api.myjson.com/bins/1dodsj",
showDone = false, showDone = false,