diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 89384901..4d0dc38f 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1247,13 +1247,32 @@ $(document).on('keypress',function(e) { var minutes = Math.floor(optionslib->get_option('cat_timeout_interval'); ?> / 60); if(data.updated_minutes_ago > minutes) { + $(".radio_cat_state" ).remove(); if($('.radio_timeout_error').length == 0) { - $('.qso_panel').prepend(''); + $('.qso_panel').prepend(''); } else { - $('.radio_timeout_error').text('Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.'); + $('.radio_timeout_error').html('Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.'); } } else { $(".radio_timeout_error" ).remove(); + text = 'TX: '+parseInt(data.frequency)/1000/1000+' MHz'; + if(data.power != null && data.power != 0) { + text = text+''+data.power+'W'; + } + if(data.prop_mode != null && data.prop_mode != '') { + text = text+'('+data.prop_mode; + if (data.prop_mode == 'SAT') { + text = text+' '+data.satname; + } + } + if(data.frequency_rx != null && data.frequency_rx != 0) { + text = text+'RX: '+parseInt(data.frequency_rx)/1000/1000+' MHz)'; + } + if (! $('#radio_cat_state').length) { + $('.qso_panel').prepend(''); + } else { + $('#radio_cat_state').html(text); + } } });