mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 17:52:16 +00:00
Fix opening/closing parenthesis in CAT-info
This commit is contained in:
parent
b0515881cd
commit
8c8cf38e6f
@ -1442,15 +1442,17 @@ $(document).on('keypress',function(e) {
|
||||
if(data.power != null && data.power != 0) {
|
||||
text = text+'<span style="margin-left:10px"></span>'+data.power+' W';
|
||||
}
|
||||
ptext = '';
|
||||
if(data.prop_mode != null && data.prop_mode != '') {
|
||||
text = text+'<span style="margin-left:10px"></span>('+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+'<span style="margin-left:10px"></span><b>RX:</b> '+(Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3)+' MHz)';
|
||||
ptext = ptext + '<span style="margin-left:10px"></span><b>RX:</b> ' + (Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3) + ' MHz';
|
||||
}
|
||||
if( ptext != '') { text = text + '<span style="margin-left:10px"></span>(' + ptext + ')';}
|
||||
if (! $('#radio_cat_state').length) {
|
||||
$('#radio_status').prepend('<div aria-hidden="true"><div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">'+text+'</div></div>');
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user