Fix opening/closing parenthesis in CAT-info
这个提交包含在:
父节点
b0515881cd
当前提交
8c8cf38e6f
共有 1 个文件被更改,包括 5 次插入 和 3 次删除
|
|
@ -1442,15 +1442,17 @@ $(document).on('keypress',function(e) {
|
||||||
if(data.power != null && data.power != 0) {
|
if(data.power != null && data.power != 0) {
|
||||||
text = text+'<span style="margin-left:10px"></span>'+data.power+' W';
|
text = text+'<span style="margin-left:10px"></span>'+data.power+' W';
|
||||||
}
|
}
|
||||||
|
ptext = '';
|
||||||
if(data.prop_mode != null && data.prop_mode != '') {
|
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') {
|
if (data.prop_mode == 'SAT') {
|
||||||
text = text+' '+data.satname;
|
ptext = ptext + ' ' + data.satname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(data.frequency_rx != null && data.frequency_rx != 0) {
|
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) {
|
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>');
|
$('#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 {
|
} else {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用