Show "no data" when schedule for selected bus/tram is not returned
 
	
	
	
	
	
	
	
	
	
	
	
	
	
 |  |  | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |         <script src="https://polyfill.io/v3/polyfill.min.js?features=Promise,XMLHttpRequest"></script> | 
 |  |  |         <script type="text/javascript" src="lang_pl.js?v7" id="lang_script"></script> | 
 |  |  |         <script type="text/javascript" src="lang_pl.js?v8" id="lang_script"></script> | 
 |  |  |         <script type="text/javascript" src="common.js?v8"></script> | 
 |  |  |         <script type="text/javascript" src="index.js?v7"></script> | 
 |  |  |     </body> | 
 
 |  |  | 
 |  |  |     refresh_button: '\u27f3 Refresh', | 
 |  |  |     last_refreshed: 'Last refreshed: $time', | 
 |  |  |     loading: 'Loading...', | 
 |  |  |     no_data: 'Data unavailable', | 
 |  |  |      | 
 |  |  |     line_alert_pattern: 'Line $line: $alert', | 
 |  |  |      | 
 
 |  |  | 
 |  |  |     refresh_button: '\u27f3 Odśwież', | 
 |  |  |     last_refreshed: 'Ostatnio odświeżone $time', | 
 |  |  |     loading: 'Ładowanie...', | 
 |  |  |     no_data: 'Brak danych', | 
 |  |  |      | 
 |  |  |     line_alert_pattern: 'Linia $line: $alert', | 
 |  |  |      | 
 
 |  |  | 
 |  |  | <div id="panel"></div> | 
 |  |  | <script src="https://polyfill.io/v3/polyfill.min.js?features=Array.prototype.forEach,Array.prototype.includes,Array.prototype.map,Element.prototype.classList,Promise,String.prototype.startsWith,XMLHttpRequest,requestAnimationFrame"></script> | 
 |  |  | <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js" integrity="sha384-iQkGyyH4ioz3m+maM3s9MX1Oq67mACa4B9Z3ovUv3Sv37LJ96fx3WnZfLoiC3Wfl" crossorigin="anonymous"></script> | 
 |  |  | <script tyle="text/javascript" src="lang_pl.js?v7" id="lang_script"></script> | 
 |  |  | <script tyle="text/javascript" src="lang_pl.js?v8" id="lang_script"></script> | 
 |  |  | <script tyle="text/javascript" src="common.js?v8"></script> | 
 |  |  | <script tyle="text/javascript" src="map.js?v20"></script> | 
 |  |  | </body> | 
 
 |  |  | 
 |  |  |             + '?tripId=' + encodeURIComponent(feature.get('tripId')) | 
 |  |  |             + '&mode=departure' | 
 |  |  |     ).done(function(data) { | 
 |  |  |         if(!data.routeName || !data.directionText) { | 
 |  |  |         if(typeof data.old === "undefined" || typeof data.actual === "undefined") { | 
 |  |  |             return; | 
 |  |  |         } | 
 |  |  |          | 
 |  |  | 
 |  |  |             table.appendChild(tr); | 
 |  |  |         } | 
 |  |  |          | 
 |  |  |         if(all_departures.length === 0) { | 
 |  |  |             tr = document.createElement('tr'); | 
 |  |  |             table.appendChild(tr); | 
 |  |  |             tr = addCellWithText(tr, lang.no_data); | 
 |  |  |             tr.colSpan = '2'; | 
 |  |  |             tr.className = 'active'; | 
 |  |  |         } | 
 |  |  | 		 | 
 |  |  |         markStops(stopsToMark, ttss_type, true); | 
 |  |  |          | 
 |  |  |         feature_timer = setTimeout(function() { vehicleTable(feature, table); }, ttss_refresh); |