Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 312: | Rivi 312: | ||
memo.obses = memo.jw.obs; | memo.obses = memo.jw.obs; | ||
if ( memo.refcode != '-' ) { | if ( memo.refcode != '-' ) { | ||
− | memo.jwR = new jwApi(); | + | memo.jwR = new jwApi(); |
− | |||
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); |