Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 311: | Rivi 311: | ||
memo.jw.loadObses( { 'obscode': memo.obscodeParts[0], 'siteid': memo.siteid, 'startdate': memo.startDate, 'custom': custom }, function( o ) { | memo.jw.loadObses( { 'obscode': memo.obscodeParts[0], 'siteid': memo.siteid, 'startdate': memo.startDate, 'custom': custom }, function( o ) { | ||
memo.obses = memo.jw.obs; | memo.obses = memo.jw.obs; | ||
− | |||
if ( memo.refcode != '-' ) { | if ( memo.refcode != '-' ) { | ||
memo.jwR = new jwApi(); | memo.jwR = new jwApi(); | ||
+ | console.log( memo.refcode ); | ||
memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | ||
− | console.log( | + | console.log( JSON.stringify( memo.jwR.obs ) ); |
memo.refs = memo.jwR.obs; | memo.refs = memo.jwR.obs; | ||
drawVisualization(memo); | drawVisualization(memo); |