Don't double up the ICAO display if there's no callsign.

This commit is contained in:
Oliver Jowett 2015-01-22 17:35:20 +00:00
parent d3537ec139
commit 6672d92d9e

View file

@ -634,7 +634,7 @@ function refreshSelected() {
$('#selected_flightstats_link').attr('href','http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?flightNumber='+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); $('#selected_flightaware_link').attr('href','http://flightaware.com/live/flight/'+selected.flight);
} else { } else {
$('#selected_callsign').text('n/a (' + selected.icao + ')'); $('#selected_callsign').text('n/a');
$('#selected_links').css('display','none'); $('#selected_links').css('display','none');
} }