refresh so no data overwrites
This commit is contained in:
parent
b38c6c314a
commit
c48af20c7e
|
@ -184,6 +184,11 @@ function enablePunchDetail(uuid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createNewEvent() {
|
function createNewEvent() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
// console.log(`${punchList}`);
|
// console.log(`${punchList}`);
|
||||||
// console.log(`${window.punches}`);
|
// console.log(`${window.punches}`);
|
||||||
// disableElement("punchList");
|
// disableElement("punchList");
|
||||||
|
@ -206,6 +211,11 @@ function createNewEvent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function genDaily() {
|
function genDaily() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
punchList = window.punches;
|
punchList = window.punches;
|
||||||
|
|
||||||
var daily = [ "Check Workday", "Check Expenses", "Check Change Cases", "Check TD's", "Check at-mentions" ];
|
var daily = [ "Check Workday", "Check Expenses", "Check Change Cases", "Check TD's", "Check at-mentions" ];
|
||||||
|
@ -220,6 +230,11 @@ function genDaily() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function genWeekly() {
|
function genWeekly() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
punchList = window.punches;
|
punchList = window.punches;
|
||||||
|
|
||||||
var weekly = [ "Update ORB Notes", "Prep Weekly Meeting", "Build out Broadcast Timer" ];
|
var weekly = [ "Update ORB Notes", "Prep Weekly Meeting", "Build out Broadcast Timer" ];
|
||||||
|
@ -233,6 +248,11 @@ function genWeekly() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function deletePunch(uuid) {
|
function deletePunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
// console.log(`${punchList}`);
|
// console.log(`${punchList}`);
|
||||||
// console.log(`${window.punches}`);
|
// console.log(`${window.punches}`);
|
||||||
punchList = window.punches;
|
punchList = window.punches;
|
||||||
|
@ -291,6 +311,11 @@ function toggleShowDone() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function editPunch(uuid) {
|
function editPunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
disableElement("newEvent");
|
disableElement("newEvent");
|
||||||
disableElement("punchListAll");
|
disableElement("punchListAll");
|
||||||
enableElement("editPunch");
|
enableElement("editPunch");
|
||||||
|
@ -336,6 +361,11 @@ function submitEditPunch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addTag() {
|
function addTag() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
var item = document.getElementById("editID").value;
|
var item = document.getElementById("editID").value;
|
||||||
var newTag = document.getElementById("tag").value.toLowerCase();
|
var newTag = document.getElementById("tag").value.toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue