Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 291: | Rivi 291: | ||
//memo.titleEl.html( i18n[ memo.obscode ].title[ memo.lang ] ); | //memo.titleEl.html( i18n[ memo.obscode ].title[ memo.lang ] ); | ||
memo.jw = new jwApi(); | memo.jw = new jwApi(); | ||
var custom = ''; | var custom = ''; | ||
| Rivi 304: | Rivi 304: | ||
memo.jw.loadObses( { 'obscode': memo.obscodeParts[0], 'siteid': memo.siteid, 'startdate': memo.startyear + '-01-01', 'custom': custom }, function( o ) { | memo.jw.loadObses( { 'obscode': memo.obscodeParts[0], 'siteid': memo.siteid, 'startdate': memo.startyear + '-01-01', 'custom': custom }, function( o ) { | ||
memo.obses = memo.jw.obs; | memo.obses = memo.jw.obs; | ||
//if ( memo.comparecode ) { | |||
// memo.jw.loadObses( { 'obscode': memo.comparecode, 'siteid': memo.siteid, 'custom': custom }, function( ) { | |||
// drawVisualization(memo); | |||
// }); | |||
//} else { | |||
// drawVisualization(memo); | |||
//} | |||
console.log( memo.obses ); | |||
drawVisualization(memo); | drawVisualization(memo); | ||
}); | }); | ||


