Small fix to ensure that sonde_id field.

This makes sure that sonde_id doesn't go back to the Launch Site name if there is something in data.id when status is blinking yellow.
pull/184/head
eben80 2021-09-21 19:21:46 +02:00 zatwierdzone przez GitHub
rodzic 49c0d00927
commit e4ded3be7f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -86,8 +86,10 @@ headtxt = function(data,stat) {
$('#sonde_rssi').html(data.rssi / 2 );
$('#sonde_detail').show();
} else {
if (!data.id) {
$('#sonde_id').html(data.launchsite.trim());
// $('#sonde_detail').hide();
}
}
$('#sonde_freq').html(data.freq);
$('#sonde_type').html(data.type);