Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 17: | Rivi 17: | ||
setTimeout( function(){ <!--{$id|default:TheAccordion|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:TheAccordion|escape:'html'}-->_jQueryTest() }, 300); | ||
function <!--{$id|default:TheAccordion|escape:'html'}-->_func() { | function <!--{$id|default:TheAccordion|escape:'html'}-->_func() { | ||
if ( typeof | if ( typeof jQuery.ui == 'undefined' ) { | ||
window.jwObsChart = true; | //window.jwObsChart = true; | ||
css_link = jQuery( "<link>", { rel: "stylesheet", type: "text/css", href: "//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css" }); | css_link = jQuery( "<link>", { rel: "stylesheet", type: "text/css", href: "//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css" }); | ||
css_link.appendTo('head'); | css_link.appendTo('head'); | ||
| Rivi 25: | Rivi 25: | ||
allReady(); | allReady(); | ||
}); | }); | ||
} else { | |||
allReady(); | |||
} | } | ||
} | } | ||
| Rivi 33: | Rivi 35: | ||
jQuery( this ).accordion({ | jQuery( this ).accordion({ | ||
heightStyle: "content", | |||
autoHeight: false, | |||
clearStyle: true, | |||
}); | |||
}); | }); | ||


