Skip to content

Commit

Permalink
change funtion L to AB.Label()
Browse files Browse the repository at this point in the history
  • Loading branch information
wirachot committed Sep 11, 2024
1 parent 97d15f6 commit 82166ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dataFields/ABFieldDateCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@

const ABField = require("../../platform/dataFields/ABField");

function L(key, altText) {
/*function L(key, altText) {
// TODO:
// return altText; // AD.lang.label.getLabel(key) || altText;
return key.replace(/{(\d+)}/g, function (match, number) {
return typeof altText[number] !== "undefined" ? altText[number] : match;
});
}
}*/

const ABFieldDateDefaults = {
key: "date",
Expand Down Expand Up @@ -161,6 +158,7 @@ module.exports = class ABFieldDateCore extends ABField {
*/
isValidData(data, validator) {
super.isValidData(data, validator);
var L = this.AB.Label();

const currentDate = new Date();
currentDate.setHours(0, 0, 0, 0);
Expand Down

0 comments on commit 82166ba

Please sign in to comment.