Ero sivun ”Widget:Field enabler” versioiden välillä
Järvi-meriwikistä
Rivi 1: | Rivi 1: | ||
<includeonly><script type="text/javascript"> | <includeonly><script type="text/javascript"> | ||
− | function <!--{$id|escape:'quotes'}--> | + | |
+ | function <!--{$id|default:fieldEnabler|escape:'html'}-->_jQueryTest() { | ||
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:fieldEnabler|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:fieldEnabler|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:fieldEnabler|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | |||
+ | function <!--{$id|default:fieldEnabler|escape:'quotes'}-->_func() { | ||
var id = "<!--{$id|escape:'quotes'}-->"; | var id = "<!--{$id|escape:'quotes'}-->"; | ||
Rivi 17: | Rivi 27: | ||
} | } | ||
− | + | ||
− | |||
− | |||
</script></includeonly> | </script></includeonly> |