fix bug
This commit is contained in:
parent
d9b04132ce
commit
da56c89721
|
@ -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);
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue