From 04c70969d90c6926a13906579e428b097d10d763 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sat, 18 Mar 2017 23:47:29 +0000 Subject: [PATCH] Fix casperjs invocation --- index.js | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 8d2d8fe..a909e8e 100644 --- a/index.js +++ b/index.js @@ -271,7 +271,7 @@ nav.className = nav.className.replace(' loading', ''); } -function loadTimes(stopId = null, clearRoute = false) { +function loadTimes(stopId, clearRoute) { if(!stopId) stopId = stop_id; if(!stopId) return; @@ -393,11 +393,6 @@ }).fail(fail_ajax).always(loading_end); } -function declinate(num, singular, plural) { - if(num == 1) return num + ' ' + singular; - return num + ' ' + plural; -} - function startTimer(date) { if(date) { setText(refresh_text, lang.last_refreshed.replace('$time', lang.time_now)); @@ -456,6 +451,8 @@ if(stop_id) return; + setText(page_title, lang.page_title); + if(stop_name_autocomplete.value) { setText(refresh_text, lang.select_stop_click_go); } else { -- Gitblit v1.9.1