commit 03/02/2026

This commit is contained in:
2026-02-03 17:02:08 +07:00
parent b90982366d
commit b78832451a
43 changed files with 954 additions and 305 deletions

View File

@@ -123,12 +123,13 @@ $(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
if ("Gate" === cat) cat = "GateNumber"; // revisi 03202026 karena inconsistensi penamaan tag
let displayCat = `[${cat}]`.toUpperCase();
$messageavailablevariables.append(new Option(text = displayCat, value = displayCat));
$messageavailablevariables.append(new Option(text = displayCat, value = displayCat, title = displayCat));
});
// tambah [ETAD], [BCB] revisi 19012026
$messageavailablevariables.append(new Option(text = '[ETAD]', value = '[ETAD]'));
$messageavailablevariables.append(new Option(text = '[BCB]', value = '[BCB]'));
$messageavailablevariables.append(new Option(text = '[ETAD]', value = '[ETAD]', title = '[ETAD]'));
$messageavailablevariables.append(new Option(text = '[BCB]', value = '[BCB]', title = '[BCB]'));
let lang = $messagelanguage.val();
let vt = $messagevoicetype.val();
@@ -179,7 +180,9 @@ $(document).ready(function () {
// iterate messageselectedvariables children
$messageselectedvariables.children().each(function () {
let text = $(this).text().trim();
// text got from title
// value got from value
let text = $(this).prop('title').trim();
let value = $(this).val().trim();
console.log('selected text:' + text + ', value:' + value);
if (text.length > 0) {
@@ -398,9 +401,12 @@ $(document).ready(function () {
if (tagLower === "[airline_code]") {
tagLower = "[flight_number]";
}
if (tagLower === "[gatenumber]") {
tagLower = "[gate]";
}
// revisi 03022026 karena malah bikin kacau di semi auto
// if (tagLower === "[gatenumber]") {
// tagLower = "[gate]";
// }
// find <option> in messageavailablevariables with value=tag
$messageavailablevariables.find('option').each(function () {
let valx = $(this).val().toLowerCase();