Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 72: | Rivi 72: | ||
//use just the most recent from level obses | //use just the most recent from level obses | ||
if ( ot == 'level' ) { jw.wbody[ wb ][ ot ].obses.splice(1); } | if ( ot == 'level' ) { jw.wbody[ wb ][ ot ].obses.splice(1); } | ||
for ( var oi in jw.wbody[ wb ][ ot ].obses ) { | for ( var oi in jw.wbody[ wb ][ ot ].obses ) { | ||
| Rivi 111: | Rivi 109: | ||
if ( ot == 'level' ) { | if ( ot == 'level' ) { | ||
if ( typeof data.inreltodateavg != 'undefined' ) { | if ( typeof data.inreltodateavg != 'undefined' ) { | ||
jw.wbody[ wb ][ot].mean = data.inreltodateavg; | jw.wbody[ wb ][ot].mean = data.inreltodateavg; | ||
| Rivi 164: | Rivi 161: | ||
ot = jw.obsorder[ i ].obstype; | ot = jw.obsorder[ i ].obstype; | ||
if ( ot != 'level' || jw.wbody[ wb ][ ot ].type != 'absolute' ) { | if ( ot != 'level' || ( jw.wbody[ wb ][ ot ].type != 'absolute' && jw.wbody[ wb ][ ot ].mean !== null ) ) { | ||
out += '<div class="col col-6 col-sm-4 col-md-3 text-center">'; | out += '<div class="col col-6 col-sm-4 col-md-3 text-center">'; | ||


