Ero sivun ”Widget:Ol3Coo311MapX” versioiden välillä
Järvi-meriwikistä
Rivi 55: | Rivi 55: | ||
//global memory for widget instance | //global memory for widget instance | ||
− | var <!--{$id|default: | + | var <!--{$id|default:Coo311Map|escape:'html'}-->_memo = { 'id': "<!--{$id|default:Coo311Map|escape:'html'}-->", 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '', 'serviceO': {}, 'serviceA': [] }; |
− | + | function <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() { | |
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:Coo311Map|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() }, 300); | ||
− | + | function <!--{$id|default:Coo311Map|escape:'html'}-->_func() { | |
//widget globals | //widget globals | ||
− | var memo = <!--{$id|default: | + | var memo = <!--{$id|default:Coo311Map|escape:'html'}-->_memo; |
memo.lang = '<!--{$lang|default:en|escape:'html'}-->'; | memo.lang = '<!--{$lang|default:en|escape:'html'}-->'; | ||
memo.filesA = []; | memo.filesA = []; |