From e0f5a368c8cf5c3cd5814b55d95711edd1b3b190 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 25 Dec 2016 20:36:48 +0000
Subject: [PATCH] Ignore invalid duplicated tram stops returned in autocomplete response (id > 6000)

---
 index.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/index.js b/index.js
index f01a51d..ed03ca4 100644
--- a/index.js
+++ b/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));

--
Gitblit v1.9.1