Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-12 969115b78ffc6c228d5eb0abdacfdd758470f299
Change where stop_id is set to mimick loadRoute() behavior
1 files modified
6 ■■■■ changed files
index.js 6 ●●●● patch | view | raw | blame | history
index.js
@@ -151,8 +151,9 @@
    if(times_xhr) times_xhr.abort();
    
    console.log('loadTimes(' + stopId + ')');
    stop_id = stopId;
    
    window.location.hash = '#!' + language + stop_id;
    window.location.hash = '#!' + language + stopId;
    refresh_button.removeAttribute('disabled');
    
    loading_start();
@@ -410,8 +411,7 @@
    stop_name_form.addEventListener('submit', function(e) {
        e.preventDefault();
        if(!stop_name_autocomplete.value) return;
        stop_id = stop_name_autocomplete.value;
        loadTimes(stop_id);
        loadTimes(stop_name_autocomplete.value);
    });
    
    refresh_button.addEventListener('click', function(e) {