commented out route history

This commit is contained in:
DennisSchiefer
2012-05-11 15:08:04 +01:00
parent c0e86c47c2
commit e7b3590352
4 changed files with 58 additions and 54 deletions
+5 -5
View File
@@ -80,7 +80,7 @@ reverseRouting: function() {
// click: button "show"
showMarker: function(marker_id) {
if( OSRM.JSONP.fences["geocoder_source"] || OSRM.JSONP.fences["geocoder_target"] )
if( OSRM.JSONP.fences["geocoder_source"] || OSRM.JSONP.fences["geocoder_target"] ) // needed when focus was on input box and user clicked on button
return;
if( marker_id == OSRM.C.SOURCE_LABEL && OSRM.G.markers.hasSource() )
@@ -140,10 +140,10 @@ deleteMarker: function(marker_id) {
//click: checkbox "show previous routes"
showPreviousRoutes: function(value) {
if( document.getElementById('option-show-previous-routes').checked == false)
OSRM.G.route.clearHistoryRoutes();
else
OSRM.G.route.storeHistoryRoute();
// if( document.getElementById('option-show-previous-routes').checked == false)
// OSRM.G.route.clearHistoryRoutes();
// else
// OSRM.G.route.storeHistoryRoute();
}
});