From d87cf076349d354b829bfe896ef11247b1182dd9 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sat, 04 May 2019 12:46:08 +0000 Subject: [PATCH] Use number of matched query chars when ordering stop search results --- index.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 28e4a4c..924e93c 100644 --- a/index.js +++ b/index.js @@ -115,8 +115,8 @@ + '&mode=departure' ).done(function(data) { setText(times_stop_type, lang.types['s' + prefix]); - setText(times_stop_name, data.stopName); - setText(page_title, lang.page_title_stop_name.replace('$stop', data.stopName)); + setText(times_stop_name, normalizeName(data.stopName)); + setText(page_title, lang.page_title_stop_name.replace('$stop', normalizeName(data.stopName))); deleteChildren(times_alerts); deleteChildren(times_table); //deleteChildren(times_lines); -- Gitblit v1.9.1