kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Merge pull request #852 from darksidelemm/testing
Fix imperial units in table on Historical pagepull/857/head
commit
3bc46f9cab
|
@ -12,7 +12,7 @@ from queue import Queue
|
|||
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
|
||||
# PATCH - Small changes, or minor feature additions.
|
||||
|
||||
__version__ = "1.7.3-beta4"
|
||||
__version__ = "1.7.3-beta5"
|
||||
|
||||
|
||||
# Global Variables
|
||||
|
|
|
@ -122,17 +122,29 @@
|
|||
return cell.getValue().toFixed(3);
|
||||
}},
|
||||
{title:"Count", field:"lines", width:72, resizable:false, headerTooltip:"Received Lines of Telemetry"}, // 75
|
||||
{title:"Last H", field:"min_height", width:75, resizable:false, headerTooltip:"Last Observed Height (m)",
|
||||
{title:"Last H", field:"min_height", width:75, resizable:false, headerTooltip:"Last Observed Height",
|
||||
formatter:function(cell, formatterParams, onRendered){
|
||||
return cell.getValue() + " m"; //return the contents of the cell;
|
||||
if (getCookie('imperial') == 'true') {
|
||||
return cell.getValue()*3.28084.toFixed(0) + " ft";
|
||||
} else {
|
||||
return cell.getValue() + " m";
|
||||
}
|
||||
}},
|
||||
{title:"Last R", field:"last_range", width:75, resizable:false, headerTooltip:"Last Observed Range (km)",
|
||||
{title:"Last R", field:"last_range", width:75, resizable:false, headerTooltip:"Last Observed Range",
|
||||
formatter:function(cell, formatterParams, onRendered){
|
||||
return cell.getValue() + " km"; //return the contents of the cell;
|
||||
if (getCookie('imperial') == 'true') {
|
||||
return cell.getValue()*0.621371.toFixed(0) + " mi";
|
||||
} else {
|
||||
return cell.getValue() + " km";
|
||||
}
|
||||
}},
|
||||
{title:"Max R", field:"max_range", width:73, resizable:false, headerTooltip:"Maximum Observed Range (km))",
|
||||
{title:"Max R", field:"max_range", width:73, resizable:false, headerTooltip:"Maximum Observed Range",
|
||||
formatter:function(cell, formatterParams, onRendered){
|
||||
return cell.getValue() + " km"; //return the contents of the cell;
|
||||
if (getCookie('imperial') == 'true') {
|
||||
return cell.getValue()*0.621371.toFixed(0) + " mi";
|
||||
} else {
|
||||
return cell.getValue() + " km";
|
||||
}
|
||||
}},
|
||||
{formatter:"rowSelection", titleFormatter:"rowSelection", align:"center", width:40, headerSort:false, titleFormatter: function(cell, formatterParams, onRendered){}}
|
||||
],
|
||||
|
|
Ładowanie…
Reference in New Issue