|
|
@ -417,8 +417,10 @@ function locolist_show() {
|
|
|
|
// append all locomotives
|
|
|
|
// append all locomotives
|
|
|
|
for (var i = 0; i < locomotives.length; i++) {
|
|
|
|
for (var i = 0; i < locomotives.length; i++) {
|
|
|
|
let li = document.createElement("li");
|
|
|
|
let li = document.createElement("li");
|
|
|
|
|
|
|
|
|
|
|
|
li.appendChild(document.createTextNode(locomotives[i].name));
|
|
|
|
li.appendChild(document.createTextNode(locomotives[i].name));
|
|
|
|
li.setAttribute("id", "locol_elm_"+locomotives[i].name);
|
|
|
|
li.setAttribute("id", "locol_elm_"+locomotives[i].name);
|
|
|
|
|
|
|
|
|
|
|
|
ul.appendChild(li);
|
|
|
|
ul.appendChild(li);
|
|
|
|
|
|
|
|
|
|
|
|
gAddEventListener("locol_elm_"+locomotives[i].name, 'click', locolist_clicked);
|
|
|
|
gAddEventListener("locol_elm_"+locomotives[i].name, 'click', locolist_clicked);
|
|
|
|