This commit is contained in:
@@ -19,16 +19,17 @@ function ayRegisterHelpers() {
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("ayLogo", function (size) {
|
||||
var url = `${Handlebars.escapeExpression(this.ayServerMetaData.ayApiUrl)}logo/${size}`;
|
||||
var url = `${Handlebars.escapeExpression(
|
||||
this.ayServerMetaData.ayApiUrl
|
||||
)}logo/${size}`;
|
||||
return new Handlebars.SafeString("<img src='" + url + "'/>");
|
||||
});
|
||||
} //eof
|
||||
|
||||
}//eof
|
||||
|
||||
function ayPreRender(theReportData) {
|
||||
if (typeof reportPreRender === "function") {
|
||||
return reportPreRender(theReportData);
|
||||
async function ayPreRender(ayAllData) {
|
||||
if (typeof ayPrepareData === "function") {
|
||||
return await ayPrepareData(ayAllData);
|
||||
} else {
|
||||
return theReportData;
|
||||
return ayAllData;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user