Improved www.ttss.krakow.pl
Jacek Kowalski
2016-12-25 e0f5a368c8cf5c3cd5814b55d95711edd1b3b190
Ignore invalid duplicated tram stops returned in autocomplete response (id > 6000)
1 files modified
1 ■■■■ changed files
index.js 1 ●●●● patch | view | raw | blame | history
index.js
@@ -428,6 +428,7 @@
        ).done(function(data) {
            deleteChildren(stop_name_autocomplete);
            for(var i = 1, il = data.length; i < il; i++) {
                if(data[i].id > 6000) continue;
                var opt = document.createElement('option');
                opt.value = data[i].id;
                setText(opt, decodeEntities(data[i].name));