Skip to content

Commit b243005

Browse files
committed
Remove obsolete code
1 parent c96385b commit b243005

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

js/app.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,6 @@ $(window).ready(function() {
553553
$("#main").removeClass("drag");
554554
});
555555

556-
// confirm dialog when launchnig a native map app with coordinates
557-
//$('#main').on('click', '#launch_mapapp', function() {
558-
// var answer = confirm("Launch your maps app?");
559-
// return answer;
560-
//});
561-
562556
// follow vehicle by clicking on data
563557
$('#main').on('click', '.row .data', function() {
564558
var e = $(this).parent();

js/tracker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,15 +1804,15 @@ function updateVehicleInfo(vcallsign, newPosition) {
18041804

18051805
// determine how to link the vehicle coordinates to a native app, if on a mobile device
18061806
if(ua.indexOf('iphone') > -1) {
1807-
coords_text = '<a id="launch_mapapp" href="maps://?q='+newPosition.gps_lat+','+newPosition.gps_lon+'">' +
1807+
coords_text = '<a href="maps://?q='+newPosition.gps_lat+','+newPosition.gps_lon+'">' +
18081808
roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5) +'</a>' +
18091809
' <i class="icon-location"></i>';
18101810
} else if(ua.indexOf('android') > -1) {
1811-
coords_text = '<a id="launch_mapapp" href="geo:'+newPosition.gps_lat+','+newPosition.gps_lon+'?q='+newPosition.gps_lat+','+newPosition.gps_lon+'('+vcallsign+')">' +
1811+
coords_text = '<a href="geo:'+newPosition.gps_lat+','+newPosition.gps_lon+'?q='+newPosition.gps_lat+','+newPosition.gps_lon+'('+vcallsign+')">' +
18121812
roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5) +'</a>' +
18131813
' <i class="icon-location"></i>';
18141814
} else {
1815-
coords_text = '<a id="launch_mapapp" href="https://www.google.com/maps/search/?api=1&query='+newPosition.gps_lat+','+newPosition.gps_lon+'" target="_blank" rel="noopener noreferrer">' +
1815+
coords_text = '<a href="https://www.google.com/maps/search/?api=1&query='+newPosition.gps_lat+','+newPosition.gps_lon+'" target="_blank" rel="noopener noreferrer">' +
18161816
roundNumber(newPosition.gps_lat, 5) + ', ' + roundNumber(newPosition.gps_lon, 5) +'</a>' +
18171817
' <i class="icon-location"></i>';
18181818
}

0 commit comments

Comments
 (0)