pis #2

Merged
fred.boniface merged 76 commits from pis into main 2023-05-06 21:53:45 +01:00
Showing only changes of commit be31d7d854 - Show all commits

View File

@ -140,9 +140,11 @@ async function displayService(svc) {
table.insertAdjacentHTML("beforeend", row)
// Display 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) {
opRow += `, with ${svc.length} carriages`;
opRow += ` with ${svc.length} carriages</p>`;
} else {
opRow += `</p>`
}
table.insertAdjacentHTML("beforeend", opRow);
}