Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
fce5c3a937
|
@ -183,7 +183,7 @@ class GwXDRFoundMapping : public GwBoatItemNameProvider{
|
||||||
return String("xdr")+getTransducerName();
|
return String("xdr")+getTransducerName();
|
||||||
};
|
};
|
||||||
virtual String getBoatItemFormat(){
|
virtual String getBoatItemFormat(){
|
||||||
return "formatXdr"+type->xdrunit; //TODO: use the type def for the correct format
|
return "formatXdr:"+type->xdrtype+":"+type->xdrunit;
|
||||||
};
|
};
|
||||||
virtual ~GwXDRFoundMapping(){}
|
virtual ~GwXDRFoundMapping(){}
|
||||||
};
|
};
|
||||||
|
|
|
@ -862,6 +862,7 @@ function formatDateForFilename(usePrefix,d){
|
||||||
if (usePrefix){
|
if (usePrefix){
|
||||||
let fwt=document.querySelector('.status-fwtype');
|
let fwt=document.querySelector('.status-fwtype');
|
||||||
if (fwt) rt=fwt.textContent;
|
if (fwt) rt=fwt.textContent;
|
||||||
|
rt+="_";
|
||||||
}
|
}
|
||||||
if (! d) d=new Date();
|
if (! d) d=new Date();
|
||||||
[d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()]
|
[d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()]
|
||||||
|
@ -1417,7 +1418,7 @@ function createDashboardItem(name, def, parent) {
|
||||||
src.setAttribute('id','source_'+name);
|
src.setAttribute('id','source_'+name);
|
||||||
let u=fmt?fmt.u:' ';
|
let u=fmt?fmt.u:' ';
|
||||||
if (! fmt && def.format && def.format.match(/formatXdr/)){
|
if (! fmt && def.format && def.format.match(/formatXdr/)){
|
||||||
u=def.format.replace(/formatXdr/,'');
|
u=def.format.replace(/formatXdr:[^:]*:/,'');
|
||||||
}
|
}
|
||||||
addEl('span','unit',footer,u);
|
addEl('span','unit',footer,u);
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in New Issue