| | |
| | | var language = 'en'; |
| | | var lang_select = document.getElementById('lang-select'); |
| | | |
| | | var stop_id; |
| | | var stop_id = ''; |
| | | var stop_name = document.getElementById('stop-name'); |
| | | var stop_name_form = stop_name.form; |
| | | var stop_name_autocomplete = document.getElementById('stop-name-autocomplete'); |
| | |
| | | addCellWithText(tr, data.old[i].stop_seq_num + '. ' + data.old[i].stop.name); |
| | | |
| | | tr.className = 'active'; |
| | | tr.addEventListener('click', function(stopId){ return function(){ loadTimes(stopId); } }(data.old[i].stop.shortName) ); |
| | | route_table.appendChild(tr); |
| | | } |
| | | |
| | |
| | | if(data.actual[i].status == 'STOPPING') { |
| | | tr.className = 'success'; |
| | | } |
| | | tr.addEventListener('click', function(stopId){ return function(){ loadTimes(stopId); } }(data.actual[i].stop.shortName) ); |
| | | route_table.appendChild(tr); |
| | | } |
| | | }).fail(fail_ajax); |