Ero sivun ”Widget:JwCurrentCharts” versioiden välillä
Järvi-meriwikistä
Rivi 571: | Rivi 571: | ||
} else if ( memo.obscode == 'ice' ) { | } else if ( memo.obscode == 'ice' ) { | ||
+ | |||
+ | var sites = {}; | ||
+ | var obsesA = []; | ||
+ | for ( var o in memo.obsesA ) { | ||
+ | obs = memo.obsesA[o]; | ||
+ | if ( typeof sites[ obs.printouts.SiteID[0] ] == 'undefined' ) { | ||
+ | sites[ obs.printouts.SiteID[0] ] = true; | ||
+ | obsesA.push( obs ); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | memo.obsesA = obsesA; | ||
var ivalsum = 0; | var ivalsum = 0; |