For some reason, the directive did not work for me, so after a long trial and a period of errors, I came up with the following:
function startSlideShow() { jQuery('.slideshow').flexslider({ animation: "slide", animationLoop: false, itemWidth: 240, controlNav: false }); jQuery('#menu-section a.dropdown-toggle').click(function () { jQuery('#menu-section .dropdown-menu').toggle(); }) }
and just call this after you have downloaded everything (my images come from a URL loaded at runtime):
setTimeout( startSlideShow, 10)
source share