commit 19/01/2026
This commit is contained in:
@@ -105,8 +105,8 @@ $(document).ready(function () {
|
||||
categories.forEach(cat => {
|
||||
if ("Phrase" === cat) return; // skip Phrase category
|
||||
if ("Airline_Code" === cat) cat = "Flight_Number"; // revisi 15012026 karena inconsistensi penamaan tag
|
||||
let displayCat = `[${cat}]`;
|
||||
$messageavailablevariables.append(new Option(text=displayCat.toUpperCase(), value=displayCat.toUpperCase()));
|
||||
let displayCat = `[${cat}]`.toUpperCase();
|
||||
$messageavailablevariables.append(new Option(text=displayCat, value=displayCat));
|
||||
});
|
||||
// tambah [ETAD], [BCB] revisi 19012026
|
||||
$messageavailablevariables.append(new Option(text='[ETAD]', value='[ETAD]'));
|
||||
@@ -121,7 +121,10 @@ $(document).ready(function () {
|
||||
//console.log(JSON.stringify(okdata));
|
||||
okdata.forEach(sb => {
|
||||
if (sb.description && sb.description.length > 0) {
|
||||
$messageavailablevariables.append($('<option>', { value: sb.tag.toUpperCase(), text: sb.description, title: sb.description }));
|
||||
let v1 = sb.tag.toUpperCase();
|
||||
let t1 = sb.description+` [${v1}]`;
|
||||
let t2 = sb.description;
|
||||
$messageavailablevariables.append($('<option>', { value: v1, text: t1, title: t2 }));
|
||||
}
|
||||
});
|
||||
if (cbLoaded && typeof cbLoaded === 'function') {
|
||||
@@ -373,7 +376,7 @@ $(document).ready(function () {
|
||||
if (mb.message_TAGS && mb.message_TAGS.length > 0) {
|
||||
let tags = mb.message_TAGS.split(" ");
|
||||
tags.forEach((tag, idx) => {
|
||||
console.log(`Restoring tag[${idx}]: ${tag}`);
|
||||
//console.log(`Restoring tag[${idx}]: ${tag}`);
|
||||
let tagLower = tag.toLowerCase();
|
||||
let isfound = false;
|
||||
if (tagLower==="[airline_code]") {
|
||||
@@ -392,11 +395,11 @@ $(document).ready(function () {
|
||||
$messageselectedvariables.append($(this).clone());
|
||||
}
|
||||
});
|
||||
if (isfound) {
|
||||
console.log(`Appended tag to selected variables: ${tag}`);
|
||||
} else {
|
||||
console.log(`Tag not found in available variables: ${tag}`);
|
||||
}
|
||||
// if (isfound) {
|
||||
// console.log(`Appended tag to selected variables: ${tag}`);
|
||||
// } else {
|
||||
// console.log(`Tag not found in available variables: ${tag}`);
|
||||
// }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user