当前提交
b6edce8253
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -1255,7 +1255,7 @@ $(document).on('keypress',function(e) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$(".radio_timeout_error" ).remove();
|
$(".radio_timeout_error" ).remove();
|
||||||
text = '<i class="fas fa-broadcast-tower"></i><span style="margin-left:10px;"></span><b>TX:</b> '+parseInt(data.frequency)/1000/1000+' MHz';
|
text = '<i class="fas fa-broadcast-tower"></i><span style="margin-left:10px;"></span><b>TX:</b> '+(Math.round(parseInt(data.frequency)/1000)/1000).toFixed(3)+' MHz';
|
||||||
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';
|
||||||
}
|
}
|
||||||
|
|
@ -1266,10 +1266,10 @@ $(document).on('keypress',function(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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> '+parseInt(data.frequency_rx)/1000/1000+' MHz)';
|
text = text+'<span style="margin-left:10px"></span><b>RX:</b> '+(Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3)+' MHz)';
|
||||||
}
|
}
|
||||||
if (! $('#radio_cat_state').length) {
|
if (! $('#radio_cat_state').length) {
|
||||||
$('.qso_panel').prepend('<div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">'+text+'</div>');
|
$('.qso_panel').prepend('<div aria-hidden="true"><div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">'+text+'</div></div>');
|
||||||
} else {
|
} else {
|
||||||
$('#radio_cat_state').html(text);
|
$('#radio_cat_state').html(text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用