Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 13: | Rivi 13: | ||
} | } | ||
} | } | ||
− | setTimeout( function(){ <!--{$id|default:TheGraph|escape:'html'}-->_jQueryTest() }, 300); | + | //setTimeout( function(){ <!--{$id|default:TheGraph|escape:'html'}-->_jQueryTest() }, 300); |
+ | setTimeout( <!--{$id|default:TheGraph|escape:'html'}-->_jQueryTest, 300); | ||
function <!--{$id|default:TheGraph|escape:'html'}-->_func() { | function <!--{$id|default:TheGraph|escape:'html'}-->_func() { | ||
Rivi 1 415: | Rivi 1 416: | ||
} | } | ||
− | function doResize( memo ) { | + | function doResize( memo ) { |
function wait() { | function wait() { | ||
+ | |||
+ | console.log( 'waited' ); | ||
var w = memo.chartEl.width(); | var w = memo.chartEl.width(); | ||
Rivi 1 474: | Rivi 1 477: | ||
} | } | ||
} | } | ||
− | + | console.log( 'start waiting' ); | |
− | //setTimeout( wait, 100 ); | + | //wait(); |
+ | setTimeout( wait, 100 ); | ||
} | } |