pull/731/head
AstroTaka 2022-11-22 22:42:48 +09:00
rodzic aaf4506d97
commit c9bd1b63c1
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -117,7 +117,7 @@
{title:"Type", field:"short_type", width:85, resizable:false}, // 90
{title:"Serial", field:"serial", width:90, resizable:false, // 105
formatter:function(cell, formatterParams, onRendered){
return strip_sonde_serial(value);
return value.replace(/^(DFM|M10|M20|IMET|IMET5|IMET54|MRZ|IMS100)-/,"");
}},
{title:"Freq", field:"freq", width:65, resizable:false, headerTooltip:"Frequency (MHz)",
formatter:function(cell, formatterParams, onRendered){

Wyświetl plik

@ -485,8 +485,8 @@
{title:'Freq (MHz)', field:"freq", headerSort:true},
{title:"ID", field:"id", width:125, headerSort:true, formatter:function(cell, formatterParams, onRendered){
_cell_data = cell.getData();
_id = strip_sonde_serial(_cell_data.id);
_sondehub_id = strip_sonde_serial(_cell_data.id)
_id = _cell_data.id.replace(/^(DFM|M10|M20|IMET|IMET5|IMET54|MRZ)-/,"");
_sondehub_id = _cell_data.id.replace(/^(DFM|M10|M20|IMET|IMET5|IMET54|MRZ)-/,"");
// Add Sondehub Link
_id += "&nbsp;<a href='http://sondehub.org/" + _sondehub_id + "' title='View on Sondehub' target='_blank'>" + "<img src='{{ url_for('static', filename='img/sondehub.png')}}'/>" + "</a>";