diff --git a/punch_list/backlogManage.js b/punch_list/backlogManage.js index ccbb0bc..8a4830c 100644 --- a/punch_list/backlogManage.js +++ b/punch_list/backlogManage.js @@ -54,13 +54,13 @@ function findArrayId(uid) { } function tagFilter(tagItem) { - console.log(`In tagFilter function`); + //console.log(`In tagFilter function`); window.tagFilterItem = tagItem; getJson(); } function clearTagFilter() { - console.log(`Clear Tags`); + //console.log(`Clear Tags`); window.tagFilterItem = undefined; getJson(); } @@ -101,7 +101,7 @@ function genList(punchList, element) { else { var style = "punch-default"; countDone++ } if (window.tagFilterItem != undefined) { - console.log('in tags filter'); + //console.log('in tags filter'); if (punchList[i].tags != undefined && punchList[i].tags.includes(window.tagFilterItem)) { if (punchList[i].progress.toLowerCase() === "in progress") { var style = "inProgress" } else { var style = "punch-default" } if (punchList[i].progress.toLowerCase() === "done" && punchList[i].priority != 99999) { @@ -135,10 +135,10 @@ function genList(punchList, element) { list += '
 
'; } if ( (new Date(punchList[i].nDate).getTime() - new Date().getTime()) <= 0 ) { - console.log('overdue'); + //console.log('overdue'); list += '
OVER DUE
'; } else if ( ((new Date(punchList[i].nDate).getTime() - new Date().getTime()) / 1000) <= 259200 ) { - console.log('due soon'); + //console.log('due soon'); list += '
DUE SOON
'; } else { list += '
 
'; @@ -167,7 +167,7 @@ function genList(punchList, element) { } } } else { - console.log('in no tags filter'); + //console.log('in no tags filter'); if (punchList[i].progress.toLowerCase() === "done" && punchList[i].priority != 99999) { setPriority(punchList[i].uuid, 99999); @@ -200,10 +200,10 @@ function genList(punchList, element) { list += '
 
'; } if ( (new Date(punchList[i].nDate).getTime() - new Date().getTime()) <= 0 ) { - console.log('overdue'); + //console.log('overdue'); list += '
OVER DUE
'; } else if ( ((new Date(punchList[i].nDate).getTime() - new Date().getTime()) / 1000) <= 259200 ) { - console.log('due soon'); + //console.log('due soon'); list += '
DUE SOON
'; } else { list += '
 
'; @@ -248,6 +248,7 @@ enableDrop(); } var x = setInterval(function() { + //console.log("Inside interval, window.punches = " + window.punches); punchList = window.punches; for ( i = 0; i < punchList.length; i++ ) { if ( punchList[i].progress.toLowerCase() != "done" && punchList[i].startTime != undefined ) { diff --git a/punch_list/metadata.js b/punch_list/metadata.js index 86dbca9..39b108a 100644 --- a/punch_list/metadata.js +++ b/punch_list/metadata.js @@ -1,7 +1,7 @@ var version = "0.10.001", debug = false, -// jsonUrl = "https://api.myjson.com/bins/1dodsj", - jsonUrl = 'https://punchlist-1561043639952.firebaseio.com/', + jsonUrl = "https://api.myjson.com/bins/1dodsj", +// jsonUrl = 'https://punchlist-1561043639952.firebaseio.com/', btJsonUrl = "https://api.myjson.com/bins/k0abr", showDone = false, items,