This commit is contained in:
@@ -138,6 +138,7 @@ function ayRegisterHelpers() {
|
||||
// Turn a utc date into a displayable
|
||||
// short date and time
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function utcDateToShortDateAndTimeLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -165,7 +166,7 @@ function utcDateToShortDateAndTimeLocalized(ayValue) {
|
||||
///////////////////////////////////////////
|
||||
// Turn a utc date into a displayable
|
||||
// short date
|
||||
//
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
function utcDateToShortDateLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
return "";
|
||||
@@ -190,7 +191,7 @@ function utcDateToShortDateLocalized(ayValue) {
|
||||
///////////////////////////////////////////
|
||||
// Turn a utc date into a displayable
|
||||
// short time
|
||||
//
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
function utcDateToShortTimeLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
return "";
|
||||
@@ -216,7 +217,7 @@ function utcDateToShortTimeLocalized(ayValue) {
|
||||
|
||||
///////////////////////////////////////////
|
||||
// CURRENCY LOCALIZATION
|
||||
//
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function currencyLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -233,7 +234,7 @@ function currencyLocalized(ayValue) {
|
||||
|
||||
///////////////////////////////////////////
|
||||
// DECIMAL LOCALIZATION
|
||||
//
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function decimalLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -329,7 +330,7 @@ async function ayPostToAPI(route, data, token) {
|
||||
|
||||
/////////////////////////////
|
||||
// attachment download URL
|
||||
//
|
||||
// (PRIVATE NOT DOCUMENTED FOR HELPER USE)
|
||||
function attachmentDownloadUrl(fileId, ctype) {
|
||||
//http://localhost:7575/api/v8/attachment/download/100?t=sssss
|
||||
//Ctype is optional and is the MIME content type, used to detect image urls at client for drag and drop ops
|
||||
@@ -378,10 +379,10 @@ function ayGroupByKey(reportDataArray, groupByKeyName) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
//Utils
|
||||
function ayPad(n, width, z) {
|
||||
z = z || "0";
|
||||
n = n + "";
|
||||
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
|
||||
}
|
||||
// //Utils
|
||||
// function ayPad(n, width, z) {
|
||||
// z = z || "0";
|
||||
// n = n + "";
|
||||
// return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user