Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 43: | Rivi 43: | ||
if ( el.is( ':visible' ) && typeof window.jwobschart[id] == 'undefined' ) { | if ( el.is( ':visible' ) && typeof window.jwobschart[id] == 'undefined' ) { | ||
− | console.log( 'chart' ); | + | //console.log( 'chart' ); |
window.jwobschart[id] = {}; | window.jwobschart[id] = {}; | ||
Rivi 1 402: | Rivi 1 402: | ||
jQuery( window ).resize(function() { | jQuery( window ).resize(function() { | ||
− | console.log( 'resize to be triggered' ); | + | //console.log( 'resize to be triggered' ); |
doResize( memo ); | doResize( memo ); | ||
− | setTimeout( function() { console.log( 'resize triggered' ); doResize( memo ); }, 100 ); | + | //setTimeout( function() { console.log( 'resize triggered' ); doResize( memo ); }, 100 ); |
}); | }); | ||
Rivi 1 419: | Rivi 1 419: | ||
function doResize( memo ) { | function doResize( memo ) { | ||
− | console.log( 'risizing' ); | + | //console.log( 'risizing' ); |
var w = memo.chartEl.width(); | var w = memo.chartEl.width(); | ||
var h = memo.chartEl.height(); | var h = memo.chartEl.height(); |