This commit is contained in:
2020-09-17 18:16:42 +00:00
parent 352208e555
commit fd96300c9d
3 changed files with 21 additions and 26 deletions

View File

@@ -1,27 +1,18 @@
let PreParedReportDataObject = null;
//////////////////////////////////
// Pre render function
//
async function ayPreRender(ayAllData) {
if (typeof ayPrepareData === "function") {
return await ayPrepareData(ayAllData);
} else {
return ayAllData;
}
}
let PreParedReportDataObject = null;
let DataReady=false;
async function ayPreRenderEx(ayAllData) {
if (typeof ayPrepareData === "function") {
PreParedReportDataObject = await ayPrepareData(ayAllData);
} else {
PreParedReportDataObject = ayAllData;
}
DataReady=true;
}
return true;
}
///////////////////////////////////////
// Set our stock handlebars helpers
//