Link to FA by hexid; clean up some dead code.

This commit is contained in:
Oliver Jowett 2016-02-27 15:52:02 +00:00
parent c6fff0ff32
commit ccb9a6c034

View file

@ -614,15 +614,12 @@ function refreshSelected() {
$('#dump1090_infoblock').css('display','none'); $('#dump1090_infoblock').css('display','none');
$('#selected_infoblock').css('display','block'); $('#selected_infoblock').css('display','block');
$('#selected_flightaware_link').attr('href','http://flightaware.com/live/modes/'+selected.icao+'/redirect');
if (selected.flight !== null && selected.flight !== "") { if (selected.flight !== null && selected.flight !== "") {
$('#selected_callsign').text(selected.flight); $('#selected_callsign').text(selected.flight);
$('#selected_links').css('display','inline');
$('#selected_fr24_link').attr('href','http://fr24.com/'+selected.flight);
$('#selected_flightstats_link').attr('href','http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?flightNumber='+selected.flight);
$('#selected_flightaware_link').attr('href','http://flightaware.com/live/flight/'+selected.flight);
} else { } else {
$('#selected_callsign').text('n/a'); $('#selected_callsign').text('n/a');
$('#selected_links').css('display','none');
} }
if (selected.registration !== null) { if (selected.registration !== null) {