diff --git a/WebContent/OSRM.Localization.js b/WebContent/OSRM.Localization.js
index 652f868cf..110d16bbb 100644
--- a/WebContent/OSRM.Localization.js
+++ b/WebContent/OSRM.Localization.js
@@ -48,7 +48,7 @@ OSRM.Localization["de"] = {
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Unbenannte Straßen hervorheben",
"GUI_START_TOOLTIP": "Startposition eingeben",
"GUI_END_TOOLTIP": "Zielposition eingeben",
-"GUI_LEGAL_NOTICE": "GUI2 v0.1.1 120316 - OSRM hosting by KIT - Geocoder by OSM",
+"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by KIT - Geocoder by OSM",
// geocoder
"SEARCH_RESULTS": "Suchergebnisse",
"TIMED_OUT": "Zeitüberschreitung",
@@ -89,7 +89,7 @@ OSRM.Localization["en"] = {
"GUI_HIGHLIGHT_UNNAMED_ROADS": "Highlight unnamed streets",
"GUI_START_TOOLTIP": "Enter start",
"GUI_END_TOOLTIP": "Enter destination",
-"GUI_LEGAL_NOTICE": "GUI2 v0.1.1 120316 - OSRM hosting by KIT - Geocoder by OSM",
+"GUI_LEGAL_NOTICE": "GUI2 v"+OSRM.VERSION+" "+OSRM.DATE+" - OSRM hosting by KIT - Geocoder by OSM",
// geocoder
"SEARCH_RESULTS": "Search Results",
"TIMED_OUT": "Timed Out",
diff --git a/WebContent/OSRM.Markers.js b/WebContent/OSRM.Markers.js
index 6bb304cbe..76948f3a4 100644
--- a/WebContent/OSRM.Markers.js
+++ b/WebContent/OSRM.Markers.js
@@ -192,11 +192,13 @@ removeMarker: function(id) {
return;
// also remove vias if source or target are removed
- if( id==0 && this.route[0].label == OSRM.C.SOURCE_LABEL )
+ if( id==0 && this.route[0].label == OSRM.C.SOURCE_LABEL ) {
this.removeVias();
- else if( id == this.route.length-1 && this.route[ this.route.length-1 ].label == OSRM.C.TARGET_LABEL ) {
+ document.getElementById('input-source-name').value = "";
+ } else if( id == this.route.length-1 && this.route[ this.route.length-1 ].label == OSRM.C.TARGET_LABEL ) {
this.removeVias();
id = this.route.length-1;
+ document.getElementById('input-target-name').value = "";
}
this.route[id].hide();
diff --git a/WebContent/OSRM.base.js b/WebContent/OSRM.base.js
index 0a4de29fa..8555c073f 100644
--- a/WebContent/OSRM.base.js
+++ b/WebContent/OSRM.base.js
@@ -19,7 +19,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
// [has to be loaded before all other OSRM classes]
var OSRM = {};
-OSRM.VERSION = '0.1.1';
+OSRM.VERSION = '0.1.2';
+OSRM.DATE = '120319';
OSRM.CONSTANTS = {};
OSRM.DEFAULTS = {};
OSRM.GLOBALS = {};