From 76f5c4d36a5b21663ead52349ad944d18f55e6d6 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sat, 13 Apr 2019 23:06:22 +0000 Subject: [PATCH] Use mapping for transations of feature type --- index.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/index.js b/index.js index c5e50ad..3000b78 100644 --- a/index.js +++ b/index.js @@ -369,7 +369,7 @@ for(var i = 0, il = data.length; i < il; i++) { var opt = document.createElement('option'); opt.value = data[i].id; - setText(opt, data[i].id.substr(0,1) == 'b' ? lang.select_stop_bus.replace('$stop', data[i].name) : lang.select_stop_tram.replace('$stop', data[i].name)); + setText(opt, lang.select_stop_type[data[i].id.substr(0,1)].replace('$stop', data[i].name)); stop_name_autocomplete.appendChild(opt); } -- Gitblit v1.9.1