Ero sivun ”Widget:Form enabler” versioiden välillä
Järvi-meriwikistä
Rivi 1: | Rivi 1: | ||
− | <includeonly | + | <includeonly><script type="text/javascript"> |
− | + | console.log('start'); | |
function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() { | ||
if ( typeof window.jQuery == 'undefined' ) { | if ( typeof window.jQuery == 'undefined' ) { | ||
setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:FormEnabler|escape:'html'}-->_jQueryTest() }, 300); | ||
} else { | } else { | ||
− | + | console.log('jquery ok'); | |
− | + | jQuery.getScript( "/scripts/jquery.autosize-min.js", function( data, textStatus, jqxhr ) { | |
+ | <!--{$id|default:FormEnabler|escape:'html'}-->_func(); | ||
}); | }); | ||
} | } | ||
Rivi 13: | Rivi 14: | ||
function <!--{$id|default:FormEnabler|escape:'html'}-->_func() { | function <!--{$id|default:FormEnabler|escape:'html'}-->_func() { | ||
− | + | console.log('all set'); | |
var lang = '<!--{$lang|default:fi|escape:'urlpathinfo'}-->'; | var lang = '<!--{$lang|default:fi|escape:'urlpathinfo'}-->'; | ||