From 8c8cf38e6fe651efb9eb140ba3adde8c15221225 Mon Sep 17 00:00:00 2001 From: DJ3CE Date: Thu, 21 Dec 2023 09:23:21 +0100 Subject: [PATCH] Fix opening/closing parenthesis in CAT-info --- application/views/interface_assets/footer.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index c046bd6d..0cdc3eee 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1442,15 +1442,17 @@ $(document).on('keypress',function(e) { if(data.power != null && data.power != 0) { text = text+''+data.power+' W'; } + ptext = ''; if(data.prop_mode != null && data.prop_mode != '') { - text = text+'('+data.prop_mode; + ptext = ptext + data.prop_mode; if (data.prop_mode == 'SAT') { - text = text+' '+data.satname; + ptext = ptext + ' ' + data.satname; } } if(data.frequency_rx != null && data.frequency_rx != 0) { - text = text+'RX: '+(Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3)+' MHz)'; + ptext = ptext + 'RX: ' + (Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3) + ' MHz'; } + if( ptext != '') { text = text + '(' + ptext + ')';} if (! $('#radio_cat_state').length) { $('#radio_status').prepend(''); } else {