From dc192d47a8ae19b4d21ddcb20d618ff045e73b65 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Thu, 5 Apr 2012 01:12:15 +0200 Subject: [PATCH] input boxes are no longer deleted on language change --- WebContent/OSRM.GUI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebContent/OSRM.GUI.js b/WebContent/OSRM.GUI.js index 223c2a914..f6ffe6203 100644 --- a/WebContent/OSRM.GUI.js +++ b/WebContent/OSRM.GUI.js @@ -29,6 +29,9 @@ width: null, init: function() { OSRM.GUI.visible = true; OSRM.GUI.width = document.getElementById("main-wrapper").clientWidth; + + document.getElementById('input-source-name').value = OSRM.DEFAULTS.ONLOAD_SOURCE; + document.getElementById('input-target-name').value = OSRM.DEFAULTS.ONLOAD_TARGET; }, // set language dependent labels @@ -46,9 +49,6 @@ setLanguage: function() { document.getElementById("input-source-name").title = OSRM.loc("GUI_START_TOOLTIP"); document.getElementById("input-target-name").title = OSRM.loc("GUI_END_TOOLTIP"); document.getElementById("legal-notice").innerHTML = OSRM.loc("GUI_LEGAL_NOTICE"); - - document.getElementById('input-source-name').value = OSRM.DEFAULTS.ONLOAD_SOURCE; - document.getElementById('input-target-name').value = OSRM.DEFAULTS.ONLOAD_TARGET; }, // show/hide main-gui