Ero sivun ”Widget:Threads” versioiden välillä
Järvi-meriwikistä
Rivi 4: | Rivi 4: | ||
function <!--{$id|default:JwThreads|escape:'html'}-->_func() { | function <!--{$id|default:JwThreads|escape:'html'}-->_func() { | ||
+ | |||
var searchStr = "action=query"; | var searchStr = "action=query"; | ||
var amountNr = <!--{$amount|default:5|escape:'html'}-->; | var amountNr = <!--{$amount|default:5|escape:'html'}-->; | ||
Rivi 81: | Rivi 82: | ||
} | } | ||
− | function <!--{$id|default:JwThreads|escape:'html'}-->_jQueryTest() { | + | function <!--{$id|default:JwThreads|escape:'html'}-->_jQueryTest() { |
− | + | ||
− | + | if ( typeof window.jQuery == 'undefined' ) { | |
− | + | setTimeout( function(){ <!--{$id|default:JwThreads|escape:'html'}-->_jQueryTest() }, 300); | |
− | + | } else { | |
− | + | <!--{$id|default:JwThreads|escape:'html'}-->_func(); | |
− | } | + | } |
− | setTimeout( function(){ <!--{$id|default:JwThreads|escape:'html'}-->_jQueryTest() }, 300); | + | } |
+ | setTimeout( function(){ <!--{$id|default:JwThreads|escape:'html'}-->_jQueryTest() }, 300); | ||
</script> | </script> | ||
</includeonly> | </includeonly> |