Improved www.ttss.krakow.pl
Jacek Kowalski
2019-04-10 2b645413fc163863d000bddde5bc27a836321422
index.js
@@ -176,6 +176,7 @@
      
      times_timer = setTimeout(function(){ loadTimes(); loadRoute(); }, ttss_refresh);
   }).fail(fail_ajax).always(loading_end);
   return times_xhr;
}
function loadRoute(tripId, vehicleInfo) {
@@ -239,6 +240,7 @@
         route_table.appendChild(tr);
      }
   }).fail(fail_ajax);
   return route_xhr;
}
function startTimer(date) {
@@ -375,19 +377,10 @@
      
      if(!stop_id) setText(refresh_text, lang.select_stop_click_go);
   }).fail(fail_ajax);
   return stop_name_autocomplete_xhr;
}
function init() {
   if(!window.jQuery) {
      fail(lang.jquery_not_loaded);
      return;
   }
   $.ajaxSetup({
      dataType: 'json',
      timeout: 10000,
   });
   lang_select.addEventListener('input', function(e) {
      change_language(lang_select.value);
   });