JQuery Accordion with Galleria inside a section problem
I have a problem with Galleria. I'm using the JQuery accordion as my main layout and inside one section I have Galleria http://galleria.aino.se开发者_运维知识库/.
My problem is that if you load the index without any parameter, the home section is opened.
And then if you click on the gallery section, galleria seems to be working indefinitely. If you click the next arrow to navigate, the thumbnails seems to go back and forth and not showing the right image. In Chrome, the main image never load.But if you reload the page with the gallery section opened, all works fine.
Here's my website: http://www.narcissusphoto.com/
How to reproduce:
1- Click the "gallery" section. 2- Check top right corner for the loading animation. 3- Click the right navigation arrow. 4- See that the thumbnails at the bottom are bugged and moving left and right randomly (in opera and IE). 4- See that the main image never load (Chrome).I was able to find a solution; binded myself to the Accordion change event and reload galleria.
change: function(event, ui) { LoadGalleria(); }
It seems that the api
of Galleria has changed... So if anybody has the same problem now you could use the following:
change: function(event, ui){
// first check whether Galleria is loaded on this page
if(typeof(Galleria) === "function") {
Galleria.loadTheme('path/to/your/theme.js');
}
}
精彩评论