parent
4fb0b34fcc
commit
be31d7d854
@ -140,9 +140,11 @@ async function displayService(svc) {
|
|||||||
table.insertAdjacentHTML("beforeend", row)
|
table.insertAdjacentHTML("beforeend", row)
|
||||||
// Display Operator
|
// Display Operator
|
||||||
if (svc.operator) {
|
if (svc.operator) {
|
||||||
var opRow = `<p class="msg op">A ${svc.operator} service</p>`
|
var opRow = `<p class="msg op">A ${svc.operator} service`
|
||||||
if (svc.length) {
|
if (svc.length) {
|
||||||
opRow += `, with ${svc.length} carriages`;
|
opRow += ` with ${svc.length} carriages</p>`;
|
||||||
|
} else {
|
||||||
|
opRow += `</p>`
|
||||||
}
|
}
|
||||||
table.insertAdjacentHTML("beforeend", opRow);
|
table.insertAdjacentHTML("beforeend", opRow);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user