From 5ac72e5919a4b8a64f3671c41712db586e5113e3 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 15 Apr 2017 14:36:58 +0000
Subject: [PATCH] Fix for hints not being translated

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

diff --git a/index.js b/index.js
index ea79123..b76cb16 100644
--- a/index.js
+++ b/index.js
@@ -325,16 +325,16 @@
 	
 	stop_name.setAttribute('placeholder', lang.stop_name_placeholder);
 	
-	if(stop_id) return;
-	
-	setText(page_title, lang.page_title);
-	
 	if(stop_name_autocomplete.value) {
 		setText(refresh_text, lang.select_stop_click_go);
 	} else {
 		setText(refresh_text, lang.enter_stop_name_to_begin);
 	}
 	
+	if(!stop_id) return;
+	
+	setText(page_title, lang.page_title);
+	
 	loadTimes();
 	loadRoute();
 }

--
Gitblit v1.9.1